Skip to content

Commit

Permalink
Merge pull request #418 from UKGovernmentBEIS/PC-1294-fix-csrf-fail
Browse files Browse the repository at this point in the history
PC-1294: Fix CSRF Fail
  • Loading branch information
samyou-softwire authored Dec 30, 2024
2 parents 2175249 + 4942761 commit 0d9e1a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion help_to_heat/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ def show_toolbar(request):

TOTP_ISSUER = "Help to Heat Supplier Portal"

CSRF_TRUSTED_ORIGINS = [BASE_URL]
# origins don't have a trailing slash, the BASE_URL does so must be trimmed
CSRF_TRUSTED_ORIGINS = [BASE_URL.rstrip("/")]

if not DEBUG:
SESSION_COOKIE_SECURE = True
Expand Down

0 comments on commit 0d9e1a2

Please sign in to comment.