Skip to content

Commit

Permalink
Add single cookie consent api URLs
Browse files Browse the repository at this point in the history
- once the single consent API is enabled on GOV.UK the JS will be making XMLHttprequests to the staging and production environments for the single consent api, so these URLs need to be added to the CSP
  • Loading branch information
andysellick committed Feb 28, 2024
1 parent f23fd95 commit 9a0c956
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/govuk_app_config/govuk_content_security_policy.rb
Expand Up @@ -71,7 +71,9 @@ def self.build_policy(policy)
*GOVUK_DOMAINS,
*GOOGLE_ANALYTICS_DOMAINS,
# Speedcurve real user monitoring (RUM) - as per: https://support.speedcurve.com/docs/add-rum-to-your-csp
"lux.speedcurve.com"
"lux.speedcurve.com",
"gds-single-consent-staging.app",
"gds-single-consent.app"

# Disallow all <object>, <embed>, and <applet> elements
#
Expand Down

0 comments on commit 9a0c956

Please sign in to comment.