1

I'm using Django Rest Framework with Django Rest Swagger for API documentation. It seems that the "try it out" button always submits http requests, not https requests, even though the browser is https.

I know how to do this if I rebuilt entire CoreAPI spec, but want to just pass something like protocol = 'https' to django_rest_swagger or something else that does not require re-coding the API documentation framework.

1 Answers1

0

are you behind a proxy? this worked for me. otherwise you can try specifying in your wsgi.py scheme='https' to force https on requests

Gilles Groven
  • 121
  • 1
  • 1
  • 5