question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cookies are not being set on cross domain

See original GitHub issue

Cookies are not being set whenever I make the call from the client side. They are being set when I use tokenAuth mutation in GraphiQL.

Even after setting JWT_COOKIE_DOMAIN

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
harshithpabbaticommented, Nov 30, 2020

If you’re using apollo client check that you set credentials: 'include' in createHttpLink

See #191 (comment)

Thanks a lot @chidimo, it worked!

1reaction
chidimocommented, Nov 24, 2020

If you’re using apollo client check that you set credentials: 'include' in createHttpLink

See https://github.com/flavors/django-graphql-jwt/issues/191#issuecomment-733011647

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set cookies for cross origin requests - Stack Overflow
The reason your CORS cookie can't be set is because Heroku strip down SSL certificate at Load Balancer, so when you try to...
Read more >
Understanding CORS and cross-origin cookies | by Sharad Jain
Cross -Origin Resource Sharing (CORS) is an HTTP-header-based mechanism that allows a server to indicate any other origins (domain, scheme, or ...
Read more >
Cookies not set for cross domain requests #3267 - GitHub
When I do a post request with axios no cookies are set in the frontend. However, it works fine on localhost with slightly...
Read more >
Using HTTP cookies - MDN Web Docs
If the server does not specify a Domain , the browser defaults the domain to the same host that set the cookie, excluding...
Read more >
How to send a cookie with a cross-origin XMLHttpRequest ...
This isn't allowed. If you do this, then your XHR request set with withCredentials=true will be sent along with all compliant cookies, BUT...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found