Hi!
I’m trying to test some endpoints using postman in my local dev environment. The project is Django/DRF based and uses signed cookies for authentication.
So I can hit an auth
endpoint on the live server and see that I get a signed cookie in response, like this:
So I would spin up a local copy of the project and construct a get request in postman manually adding a cookie to the request header using key and value copied from a live server response. But I’m still getting not authorized
error.
If I change permission classes to AllowAny
in the codebase for the API I’m hitting, then I can get the requested data, so I know that overall the setup is correct. I just need to be able to test this endpoint locally being properly authenticated.
I would greatly appreciate any pointers on how I can set up Postman to do this.