Skip to content

Commit

Permalink
Merge pull request #122 from gushil/upstream-release-fix-save-OC-22568
Browse files Browse the repository at this point in the history
OC-22568 Fix save failed because of CSRF trusted origin error
  • Loading branch information
svadla-oc authored May 3, 2024
2 parents 44b51ec + 59e4d8c commit 49bcdd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kobo/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
SESSION_COOKIE_NAME = env.str('SESSION_COOKIE_NAME', 'kobonaut')
# The trusted CSRF origins must encompass Enketo's subdomain. See
# https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-CSRF_TRUSTED_ORIGINS
CSRF_TRUSTED_ORIGINS = [SESSION_COOKIE_DOMAIN]
CSRF_TRUSTED_ORIGINS = [SESSION_COOKIE_DOMAIN, ".openclinica.io", ".openclinica-dev.io", ".openclinica-dev-eks.io", ".openclinica-staging.io", ".openclinica-staging-2.io"]
CSRF_COOKIE_SECURE = True
ENKETO_CSRF_COOKIE_NAME = env.str('ENKETO_CSRF_COOKIE_NAME', '__csrf')
CSRF_COOKIE_SAMESITE = 'None'
Expand Down

0 comments on commit 49bcdd1

Please sign in to comment.