How to share variables between WordPress plugin pages?
I am working on a WordPress plugin that has two pages (index and settings). I am not quite sure how to handle the settings here but I think the plugin is too simple to use a table to store the…
I am working on a WordPress plugin that has two pages (index and settings). I am not quite sure how to handle the settings here but I think the plugin is too simple to use a table to store the…
I use express app as backend. I set cors middleware: app.use(cors({ credentials: true, origin: 'http://localhost:3000' //client host })); Here are cookie options I set: res.cookie(this.refreshCookieName, refreshToken, { httpOnly: false, path: `/api`, sameSite: 'lax', maxAge: accessCookieMaxAge, secure: false }); On frontend…
After experimenting with different configurations found on questions similar to this, none of them seem to work. Set-Cookie is being sent by express, however the browser isn't setting it in Application -> Cookies This question is for when I am…
I am using PHP 8.0 and this is a wordpress site version 6.1.1 I have a plugin that is setting a cookie like so: window.tourmaster_set_cookie = function( cname, cvalue, expires ){ if( typeof(expires) != 'undefined' ){ if( expires == 0…
I cannot sign into AWS account. The AWS management console accepts password but then throws 400 error before getting to MFA. Link to Support takes me to login again, haha. I cleared cache and cookies for all of time. I…
So I am making a web app with nuxt 3 and laravel, and I cant seem to get the SPA authentication to work. So I am for now generating a usertoken and saving it in the cookies, so my user…
I'm aware that 302 redirections in cross-domain situations can make cookies get lost, but the API / Azure Function is on the same domain as the redirectUrl. Considering the following code snippet: const expirationDate = new Date(Date.now()) expirationDate.setHours(expirationDate.getHours() + 24)…
I use Axios to get cookies from http://localhost/sanctum/csrf-cookie My app doing requests from localhost:3000 which is configured by Nuxt. My backend configured by Laravel sanctum at localhost:80 After the GET request, I have the following cookies set in my headers:…
My setup is the following: (http://localhost:39500) ASP.NET Core backend (http://localhost:3000) React frontend I am sending an API request from my frontend to backend. The backend responds with a Set-Cookie header but the cookie is not being set in the browser.…
I've got spinning wheel script that I'm trying to use to give away small prizes to visitors when they login to a website. The wheel animation all works great and the script puts the 'result' into a variable and displays…