We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e0107d commit ff03aadCopy full SHA for ff03aad
config/initializers/content_security_policy.rb
@@ -1 +1,5 @@
1
-GovukContentSecurityPolicy.configure
+GovukContentSecurityPolicy.configure do |policy|
2
+ # Ensures the ability to render an OS map
3
+ img_policy_with_os_api = (policy.img_src + ["https://api.os.uk"] + [:data]).uniq
4
+ policy.img_src(*img_policy_with_os_api)
5
+end
0 commit comments