'request.COOKIES is empty when Django Rest Framework API hit from React JS but works in Postman
I have implemented JWT Authentication in Django Rest Framework and using React JS as frontend.
The issue is, When i test my API in Postman everything works.
I send email and password to /login, it returns jwt token and set_cookies with http_only = True, UserView simple fetches that jwt token form cookies and returns the user.
See the image of working backend. JWT token returned and COOKIE is set.

And userview gives the User back as shown in image... But when i call this API into React JS, The Login Works but UserView doesn't get any Token hence gives error 401. Why this happening? Please see my code
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|






