Skip to content

Commit

Permalink
getenv CSRF_TRUSTED_ORIGIN
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs committed Apr 11, 2024
1 parent 761c181 commit 1d6f67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
"WAGTAILADMIN_BASE_URL", "https://nationalarchives.gov.uk"
)

CSRF_TRUSTED_ORIGINS = [WAGTAILADMIN_BASE_URL]
CSRF_TRUSTED_ORIGINS = [os.getenv("CSRF_TRUSTED_ORIGIN", "nationalarchives.gov.uk")]

# For search results within Wagtail itself
WAGTAILSEARCH_BACKENDS = {
Expand Down

0 comments on commit 1d6f67b

Please sign in to comment.