diff --git a/nginx.conf b/nginx.conf index aad7ab3..50b4293 100644 --- a/nginx.conf +++ b/nginx.conf @@ -21,20 +21,13 @@ server { expires -1; } - # CRA generates filenames with hashes so we can + # Vite generates filenames with hashes so we can # tell the browser to keep in cache the resources. location ~* \.(?:css|js|md|woff2?|eot|ttf|xml)$ { expires 1y; access_log off; add_header Cache-Control "public"; - # Allow fonts and scripts to be downloaded from pages - # served by Keycloak (CORS for --external-request) - # We allow .md for beeing able to fetch the terms of service. - location ~* \.(?:js|woff2?|eot|ttf|xml|md)$ { - add_header Access-Control-Allow-Origin *; - } - } }