See #880: added CSP policy in deployment files

This commit is contained in:
Eliot Berriot 2019-07-10 15:11:29 +02:00
commit 9c5f623d03
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
5 changed files with 25 additions and 1 deletions

View file

@ -69,6 +69,8 @@ http {
text/x-component
text/x-cross-domain-policy;
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:";
location /front/ {
# uncomment the following line and comment the proxy-pass one
# to use the frontend build with "yarn build"