Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1548

Getting Forbidden (403) CSRF verification failed

$
0
0

I am using Django, DRF , docker, Nginx and AWS EC2 instance for my personal project, application is working fine when it is using HTTP , once i changed to HTTPS i am getting CSRF Verification Failed.

used {% csrf_token %} where required in html forms

in settings.py I have:

CSRF_COOKIE_SECURE = TrueCSRF_TRUSTED_ORIGINS = ['http://localhost/', 'example.co.in', 'www.example.co.in']CORS_ORIGIN_WHITELIST = ['http://localhost/', 'example.co.in', 'www.example.co.in']

Please help me in solving this issue, thank you everyone


Viewing all articles
Browse latest Browse all 1548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>