diff --git a/project/frontend/docker/nginx.conf b/project/frontend/docker/nginx.conf index 7d028a5..ec66e0b 100644 --- a/project/frontend/docker/nginx.conf +++ b/project/frontend/docker/nginx.conf @@ -4,6 +4,8 @@ server { root /usr/share/nginx/html; index index.html; + add_header Content-Security-Policy "default-src '\''self'\''; script-src '\''self'\'' '\''unsafe-eval'\'' '\''unsafe-inline'\''; style-src '\''self'\'' '\''unsafe-inline'\''; img-src '\''self'\'' data:; font-src '\''self'\'';" always; + # Caching configuration for static assets location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { expires 30d; @@ -20,4 +22,4 @@ server { location = /50x.html { root /usr/share/nginx/html; } -} +} \ No newline at end of file