Add wss: to default to get rid of angry CSP on webadmin

This commit is contained in:
Alexandre Aubin 2020-04-27 02:15:14 +02:00
parent 69938c3feb
commit c0c026613f

View file

@ -22,7 +22,7 @@ ssl_prefer_server_ciphers off;
# https://wiki.mozilla.org/Security/Guidelines/Web_Security
# https://observatory.mozilla.org/
more_set_headers "Content-Security-Policy : upgrade-insecure-requests";
more_set_headers "Content-Security-Policy-Report-Only : default-src https: data: 'unsafe-inline' 'unsafe-eval'";
more_set_headers "Content-Security-Policy-Report-Only : default-src https: data: wss: 'unsafe-inline' 'unsafe-eval' ";
more_set_headers "X-Content-Type-Options : nosniff";
more_set_headers "X-XSS-Protection : 1; mode=block";
more_set_headers "X-Download-Options : noopen";