-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cookieDomain doesn't work #983
Comments
I noticed you use |
Sure, I've test on the latest version and it's the same problem |
I doubt you can set a cookie for an external domain from the browser perspective. I would advise you to do a research if you can achieve that by pure JS (i.e. without using |
My api is a subdomain of my site, I tested by changing the domain of my cookie manually with the browser tool to put that of my api and it works. But I don't understand why no matter what I put in the cookieDomain parameter it does not change the domain when I look at my cookie with the browser tool. What is the point of this setting? It's the same for the cookieName. |
I have the default value, name : |
|
Environment
Reproduction
I connect to my account on the site by contacting my API which is on a different domain than my site and which returns a token to me, then the token is stored in a cookie.
Describe the bug
No matter what I put in the cookieDomain parameter for the token it doesn't change anything the domain of my cookie is always that of my site while I want it to be that of my api.
Additional context
Here my nuxt config :
Logs
No response
The text was updated successfully, but these errors were encountered: