File tree 3 files changed +6
-3
lines changed
modules/profile/templates
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ server {
14
14
server_tokens off;
15
15
16
16
# Add Content Security Policy headers
17
- add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' code.jquery.com; connect-src 'self'; img-src 'self'; style-src 'self'; report-to https://csp-report-api.openjs-foundation.workers.dev/";
17
+ add_header Reporting-Endpoints "csp-endpoint=\"https://csp-report-api.openjs-foundation.workers.dev/\""
18
+ add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' code.jquery.com; connect-src 'self'; img-src 'self'; style-src 'self'; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint";
18
19
19
20
location / {
20
21
root /srv/www/content.jquery.com;
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ server {
18
18
proxy_buffering off;
19
19
20
20
# Add Content Security Policy headers
21
- add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' code.jquery.com; connect-src 'self'; img-src 'self'; style-src 'self'; report-to https://csp-report-api.openjs-foundation.workers.dev/" always;
21
+ add_header Reporting-Endpoints "csp-endpoint=\"https://csp-report-api.openjs-foundation.workers.dev/\""
22
+ add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self'; connect-src 'self'; img-src 'self'; style-src 'self'; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint;" always;
22
23
}
23
24
24
25
location /.well-known/acme-challenge {
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ server {
19
19
root /srv/www/<%= @fqdn %> <%= @site['webroot'] or '' %> ;
20
20
21
21
# Add Content Security Policy headers
22
- add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' code.jquery.com; connect-src 'self'; img-src 'self'; style-src 'self'; report-to https://csp-report-api.openjs-foundation.workers.dev/";
22
+ add_header Reporting-Endpoints "csp-endpoint=\"https://csp-report-api.openjs-foundation.workers.dev/\""
23
+ add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' code.jquery.com; connect-src 'self'; img-src 'self'; style-src 'self'; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint";
23
24
24
25
<%- if @site['allow_php'] -%>
25
26
index index.php index.html;
You can’t perform that action at this time.
0 commit comments