python Django REST Framework CSRF Failed: CSRF cookie not set?

I have a web-application that I need to do some API level testing. I was able to make a Django Post request API call in curl command as this: curl ‘https://my-server.com/blablabla/api/public/v1/…

How to connect to HTTPS connection to use an API in Python?

This is the requirement from the API’s documentation A HTTPS connection is needed to use the API. This means that you will require a secure SSL/TLS connection to be able to communicate with our API Server. This is the Curl command of getting the clients in their documentation So, I need to implement the same thing in Python Answer