Skip to content

Commit b9f4dc7

Browse files
authored
Add CORS headers for output directory (#163)
We need these to be able to read the response from the client using xhr
1 parent 0ecffbe commit b9f4dc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deploy/nginx.conf

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ server {
7979
# Serve JS files from the output directory. We use a regular expression
8080
# match to ensure that we only serve JS files.
8181
location ~ ^/output/(.+\.js)$ {
82+
add_header Access-Control-Allow-Origin *;
8283
alias /var/www/trypurescript/staging/.psci_modules/node_modules/$1;
8384
}
8485
}

0 commit comments

Comments
 (0)