We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e5ead commit ff6eb03Copy full SHA for ff6eb03
templates/common.filter.template
@@ -1,3 +1,4 @@
1
# Allow load ab2p resources from sites with CSP policies applied
2
SERVER-HEADER-FILTER: allow-custom-css "Add ${NGINX_SERVER_NAME} to style-src in CSP"
3
-s/^Content-Security-Policy:\s*(.*)/Content-Security-Policy: $1; style-src https:\/\/${NGINX_SERVER_NAME}/i
+s/(style-src\s+)([^;]*)(;)/$1$2 ${NGINX_SERVER_NAME}$3/gmi
4
+s/^Content-Security-Policy:\s+(?!.*style-src)(.*)$/Content-Security-Policy: $1; style-src ${NGINX_SERVER_NAME}/mi
0 commit comments