File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
modules/profile/templates Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ server {
13
13
14
14
server_tokens off;
15
15
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/";
18
+
16
19
location / {
17
20
root /srv/www/content.jquery.com;
18
21
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ server {
12
12
error_log /var/log/nginx/error.log crit;
13
13
server_tokens off;
14
14
15
+ # Add Content Security Policy headers
16
+ 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
+
15
18
location / {
16
19
proxy_pass http://localhost:<%= @backend_port %> ;
17
20
proxy_redirect off;
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ server {
18
18
19
19
root /srv/www/<%= @fqdn %> <%= @site['webroot'] or '' %> ;
20
20
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/";
23
+
21
24
<%- if @site['allow_php'] -%>
22
25
index index.php index.html;
23
26
try_files $uri $uri/ /index.php$is_args$args;
You can’t perform that action at this time.
0 commit comments