diff --git a/deploy/nginx.conf b/deploy/nginx.conf index b2c1bdb2..cc40a9a0 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -79,6 +79,7 @@ server { # Serve JS files from the output directory. We use a regular expression # match to ensure that we only serve JS files. location ~ ^/output/(.+\.js)$ { + add_header Access-Control-Allow-Origin *; alias /var/www/trypurescript/staging/.psci_modules/node_modules/$1; } }