diff --git a/frontend/nginx.conf b/frontend/nginx.conf index ba1172af..dcbe20b1 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -33,9 +33,10 @@ server { proxy_pass http://backend:8000/health; } - # Cache static assets + # Cache static assets + CORS for crossorigin attribute location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { expires 30d; add_header Cache-Control "public, immutable"; + add_header Access-Control-Allow-Origin * always; } }