Skip to content

Commit

Permalink
Merge pull request #417 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 f87d8a3 + 1b3ae63 commit 2175249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions help_to_heat/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def show_toolbar(request):

TOTP_ISSUER = "Help to Heat Supplier Portal"

CSRF_TRUSTED_ORIGINS = [BASE_URL]

if not DEBUG:
SESSION_COOKIE_SECURE = True
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
Expand Down

0 comments on commit 2175249

Please sign in to comment.