Skip to content

Commit 2db5fa7

Browse files
committed
Add Access-Control-Allow-Origin: * header to allow CORS
1 parent ecfa77a commit 2db5fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/nginx.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ http {
157157
add_header X-Frame-Options "SAMEORIGIN";
158158
add_header X-XSS-Protection "1; mode=block";
159159
add_header Content-Security-Policy "default-src 'self'; connect-src 'self' https://docs.rs https://<%= s3_host(ENV) %>; script-src 'self' 'unsafe-eval' https://www.google.com; style-src 'self' 'unsafe-inline' https://www.google.com https://ajax.googleapis.com; img-src *; object-src 'none'";
160-
160+
add_header Access-Control-Allow-Origin "*";
161161
add_header Strict-Transport-Security "max-age=31536000" always;
162162
add_header Vary 'Accept, Accept-Encoding, Cookie';
163163
proxy_set_header Host $http_host;

0 commit comments

Comments
 (0)