Skip to content

Commit

Permalink
feat(django): USE_X_FORWARDED_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaumebeuzeboc committed Jan 25, 2024
1 parent 3bc489f commit 0a196df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cos_registration_server/cos_registration_server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,6 @@
SESSION_COOKIE_SECURE = True

CSRF_COOKIE_SECURE = True

# To keep the reverse proxy prefix when forwarding.
USE_X_FORWARDED_HOST = True

0 comments on commit 0a196df

Please sign in to comment.