Django - Security Best Practices
You want to secure your Django site so that session and CSRF cookies are only sent over HTTPS, and all HTTP requests redirect to HTTPS. Which combination of settings achieves this securely?
SECURE_SSL_REDIRECT = True forces all HTTP requests to HTTPS, preventing insecure access.SESSION_COOKIE_SECURE and CSRF_COOKIE_SECURE to True ensures cookies are only sent over HTTPS connections.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions