How to avoid CSRF token issues with Django when running on different sub-domains
Posted on 2022-02-13 in Trucs et astuces • Tagged with Python, Django
If you deploy multiple Django websites on your infrastructure on various subdomains, you may get issues about invalid CSRF tokens. This is happening either because:
- You erase the cookie by using the same domain. For instance, if you have your prod API at api.jujens.eu and pre-production one at …
Continue reading