Skip to content

Commit

Permalink
fix CSRF issues with proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Apr 4, 2024
1 parent 5af054a commit 24ffc38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@

FEEDBACK_FORM = "https://docs.google.com/forms/d/e/1FAIpQLSeWM8CBVwaksqmEy79JAmgfecodR7skmYBIwhRrc0rho1nisA/viewform"

# make sure CSRF checking still works behind load balancers
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")

# Application definition

INSTALLED_APPS = [
Expand Down

0 comments on commit 24ffc38

Please sign in to comment.