Add SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') In setting file
shaharyar shamshi software developer On Thu, Jan 28, 2021, 15:47 Ruslan Shamsutdinov <tankrusla...@gmail.com> wrote: > I created an API, deployed it on the server on 8443 port and setup > cloudflare's SSL certificates. Everything works perfectly, but I got a > problem that urls in api-root still have http scheme. Also I set > X-Forwarded-Proto $scheme header in nginx.conf. What could be the problem? > > -- > You received this message because you are subscribed to the Google Groups > "Django REST framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-rest-framework+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-rest-framework/68921419-b1d4-4e8c-a3c8-379acef2f624n%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/68921419-b1d4-4e8c-a3c8-379acef2f624n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAPiPmLJ-0fSQ%3DW87fBG%3D-QWUPPx5hSRQUcZrCQ%3DwdiRqZN5T2A%40mail.gmail.com.