django rest framework https for absolute urls?

后端 未结 2 1415
天涯浪人
天涯浪人 2021-01-05 17:04

The server hosting the api is returning http for absolute urls even though the page was loaded using https, does this have something to do with django rest framework? becaus

2条回答
  •  悲哀的现实
    2021-01-05 17:25

    Are you using Rest Framework reverse() function to build URLs? http://www.django-rest-framework.org/api-guide/reverse/

    It uses incoming request to determine the protocol used.

提交回复
热议问题