Skip to content

Commit 94a0d4c

Browse files
author
Michael Babker
authored
Merge pull request #17 from joomla/zero-24-patch-1
Use report-uri.com to collect csp reports and add Feature-Policy
2 parents 94cc4bf + 73e3174 commit 94a0d4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.htaccess

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ Options -Indexes
3636
# Strict-Transport-Security
3737
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
3838
# Content-Security-Policy-Report-Only
39-
Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'sha256-Y+JFTL90/cEj85vhT3eNtky5NhB/ynGgqp+b7/ec1EU=' 'sha256-jWUL8SPRc6RLWm6Dsgi/j3WazpOVqhUkSV7lQ1CglJg=' 'sha256-/5E6zLxPOzxAM09WN5S/OLOYujyVqNqh2O8TYfHyWGE=' 'sha256-IdGCicCStclh9gcSb3HOLfSv+uYUeKV7MLAn0YH7mJw=' 'sha256-IxJ2MRv31XGmZD5ovlgSBrPmMjftYTJ3OM9/kLh6nBo=' 'sha256-+y2wQhqV7KpN4dzJayfCPBs1WdU7HViVHWrrkFYD5bg=' https://*.google-analytics.com https://netdna.bootstrapcdn.com https://www.googletagmanager.com https://*.googleapis.com https://www.gstatic.com https://code.jquery.com https://cdnjs.cloudflare.com https://*.pingdom.net; style-src 'self' 'sha256-1YvJdQQmg6uOVTYYFv7RZlsdSxEYBbG0Z1Fo7pFmcOQ=' 'sha256-uOtB/8JkT+/L0LDZlxc42nzI/dqQ+q0S/TComR30jHk=' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' https://*.joomla.org https://fonts.googleapis.com; connect-src 'self' https://*.pingdom.net https://*.doubleclick.net https://*.google-analytics.com; frame-src 'self' https://www.google.com https://*.googletagmanager.com; font-src 'self' https://fonts.gstatic.com https://netdna.bootstrapcdn.com https://*.joomla.org; img-src 'self' https://*.google-analytics.com https://*.googletagmanager.com https://*.joomla.org https://*.pingdom.net https://*.doubleclick.net; report-uri https://community.joomla.org/scripts/csp-reporter.php?source=api.joomla.org"
39+
Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'sha256-Y+JFTL90/cEj85vhT3eNtky5NhB/ynGgqp+b7/ec1EU=' 'sha256-jWUL8SPRc6RLWm6Dsgi/j3WazpOVqhUkSV7lQ1CglJg=' 'sha256-/5E6zLxPOzxAM09WN5S/OLOYujyVqNqh2O8TYfHyWGE=' 'sha256-IdGCicCStclh9gcSb3HOLfSv+uYUeKV7MLAn0YH7mJw=' 'sha256-IxJ2MRv31XGmZD5ovlgSBrPmMjftYTJ3OM9/kLh6nBo=' 'sha256-+y2wQhqV7KpN4dzJayfCPBs1WdU7HViVHWrrkFYD5bg=' https://*.google-analytics.com https://netdna.bootstrapcdn.com https://www.googletagmanager.com https://*.googleapis.com https://www.gstatic.com https://code.jquery.com https://cdnjs.cloudflare.com https://*.pingdom.net; style-src 'self' 'sha256-1YvJdQQmg6uOVTYYFv7RZlsdSxEYBbG0Z1Fo7pFmcOQ=' 'sha256-uOtB/8JkT+/L0LDZlxc42nzI/dqQ+q0S/TComR30jHk=' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' https://*.joomla.org https://fonts.googleapis.com; connect-src 'self' https://*.pingdom.net https://*.doubleclick.net https://*.google-analytics.com; frame-src 'self' https://www.google.com https://*.googletagmanager.com; font-src 'self' https://fonts.gstatic.com https://netdna.bootstrapcdn.com https://*.joomla.org; img-src 'self' https://*.google-analytics.com https://*.googletagmanager.com https://*.joomla.org https://*.pingdom.net https://*.doubleclick.net; report-uri https://joomla.report-uri.com/r/t/csp/enforce"
4040

4141
# Override the csp for the results.html, 404.html & 403.html file
4242
<Files ~ "results.html">
4343
# Content-Security-Policy-Report-Only
44-
Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.google-analytics.com https://netdna.bootstrapcdn.com https://www.googletagmanager.com https://*.googleapis.com https://www.gstatic.com https://code.jquery.com https://cdnjs.cloudflare.com https://*.pingdom.net https://*.google.com; style-src 'self' 'unsafe-inline' https://*.joomla.org https://fonts.googleapis.com https://*.google.com; connect-src 'self' https://*.pingdom.net https://*.doubleclick.net; frame-src 'self' https://www.google.com https://*.googletagmanager.com https://cse.google.com/; font-src 'self' https://fonts.gstatic.com https://netdna.bootstrapcdn.com https://*.joomla.org; img-src 'self' https://*.google-analytics.com https://*.googletagmanager.com https://*.joomla.org https://*.pingdom.net https://*.doubleclick.net https://*.gstatic.com https://*.google.com https://*.googleapis.com; report-uri https://community.joomla.org/scripts/csp-reporter.php?source=api.joomla.org"
44+
Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.google-analytics.com https://netdna.bootstrapcdn.com https://www.googletagmanager.com https://*.googleapis.com https://www.gstatic.com https://code.jquery.com https://cdnjs.cloudflare.com https://*.pingdom.net https://*.google.com; style-src 'self' 'unsafe-inline' https://*.joomla.org https://fonts.googleapis.com https://*.google.com; connect-src 'self' https://*.pingdom.net https://*.doubleclick.net; frame-src 'self' https://www.google.com https://*.googletagmanager.com https://cse.google.com/; font-src 'self' https://fonts.gstatic.com https://netdna.bootstrapcdn.com https://*.joomla.org; img-src 'self' https://*.google-analytics.com https://*.googletagmanager.com https://*.joomla.org https://*.pingdom.net https://*.doubleclick.net https://*.gstatic.com https://*.google.com https://*.googleapis.com; report-uri https://joomla.report-uri.com/r/t/csp/enforce"
4545
</Files>
4646
<Files ~ "404.html">
4747
# Content-Security-Policy-Report-Only
48-
Header always set Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; report-uri https://community.joomla.org/scripts/csp-reporter.php?source=api.joomla.org"
48+
Header always set Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; report-uri https://joomla.report-uri.com/r/t/csp/enforce"
4949
</Files>
5050
<Files ~ "403.html">
5151
# Content-Security-Policy-Report-Only
52-
Header always set Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; report-uri https://community.joomla.org/scripts/csp-reporter.php?source=api.joomla.org"
52+
Header always set Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; report-uri https://joomla.report-uri.com/r/t/csp/enforce"
5353
</Files>
5454
</IfModule>
5555

0 commit comments

Comments
 (0)