django-graphql-jwt icon indicating copy to clipboard operation
django-graphql-jwt copied to clipboard

Cookies are not being set on cross domain

Open harshithpabbati opened this issue 4 years ago • 5 comments

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

harshithpabbati avatar Oct 11 '20 20:10 harshithpabbati

@mongkok can I know is it a bug or is it issue with my implementation?

I followed the documentation and did exactly the same

harshithpabbati avatar Oct 12 '20 08:10 harshithpabbati

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

chidimo avatar Nov 24 '20 21:11 chidimo

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

See #191 (comment)

Thanks a lot @chidimo, it worked!

harshithpabbati avatar Nov 30 '20 04:11 harshithpabbati

Weird, it's not working anymore again, I guess last time I mistook that it's working ig

harshithpabbati avatar Mar 15 '21 15:03 harshithpabbati

Can you post some code? Kind of difficult to fix a problem you can't see.

aaonhub avatar Sep 17 '21 19:09 aaonhub