Origin checking failed in Django: trusted origins or proxy HTTPS?
Summary When Django returns CSRF origin failures after a hostname, frontend-origin, or proxy HTTPS change, distinguish an intentional cross-origin POST from incorrect scheme detection; trust only intended origins and set SECURE_PROXY_SSL_HEADER only when the proxy controls that header (checked 2026-10-20).