Skip to content

Commit ff03aad

Browse files
committed
Fix data:image CSP error and move content security policy rules to this repo
1 parent 3e0107d commit ff03aad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
GovukContentSecurityPolicy.configure
1+
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

Comments
 (0)