0

I want to set cookies in order to save to refresh token. I've triyed using set_cookies() function with a HttpResponse object but there's no cookies get in Postman. I've triyed also with a Response object but I've get an "AttributeError: 'Response' object has no attribute 'set_cookie' " enter image description here

Response in Postman Code

  • Maybe add the code how you tried it with an `HttpResponse`... – Bernhard Vallant Jul 04 '22 at 12:03
  • the code was captured in Pic : ** "Code" ** and the server response in ** " Response in Postman" ** – Firas Jul 04 '22 at 13:31
  • Does this answer your question? [saving authentication token in cookie (Django Rest Framework + React)](https://stackoverflow.com/questions/51143285/saving-authentication-token-in-cookie-django-rest-framework-react) – Ormon Saadanbek Jul 04 '22 at 14:45

0 Answers0