Skip to content

Commit

Permalink
Add GOVUK domains to script src CSP
Browse files Browse the repository at this point in the history
The assets domain can't POST to the feedback form without this.
  • Loading branch information
AshGDS committed Dec 20, 2023
1 parent 6639ba2 commit b30410c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/govuk_app_config/govuk_content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def self.build_policy(policy)
policy.script_src :self,
*GOOGLE_ANALYTICS_DOMAINS,
*GOOGLE_STATIC_DOMAINS,
*GOVUK_DOMAINS,
# Allow YouTube Embeds (Govspeak turns YouTube links into embeds)
"*.ytimg.com",
"www.youtube.com",
Expand Down

0 comments on commit b30410c

Please sign in to comment.