9 lines
691 B
Plaintext
9 lines
691 B
Plaintext
|
|
# Security headers for every response, included per location in nginx.conf.
|
||
|
|
#
|
||
|
|
# connect-src 'none': neither the page nor its Web Worker may make network
|
||
|
|
# requests, so audio cannot be sent anywhere. The worker's own policy comes from
|
||
|
|
# its script response, which is why every location carries these headers.
|
||
|
|
add_header Content-Security-Policy "default-src 'none'; script-src 'self'; worker-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; connect-src 'none'; media-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'" always;
|
||
|
|
add_header Referrer-Policy "no-referrer" always;
|
||
|
|
add_header X-Content-Type-Options "nosniff" always;
|