cross origin

beta.r3js.org
Theunis Johannes Botha 2016-10-01 01:10:37 +02:00
parent 0af73912b1
commit 359482c62f
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,9 @@ server {
access_log /var/log/nginx/3d-editor.cybafelo.local.access.log;
error_log /var/log/nginx/3d-editor.cybafelo.local.error.log;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
location / {
try_files $uri $uri/ @node;
}

View File

@ -9,6 +9,8 @@ server {
access_log /var/log/nginx/3d-editor.cybafelo.local.access.log;
error_log /var/log/nginx/3d-editor.cybafelo.local.error.log;
add_header Access-Control-Allow-Origin *;
location / {
try_files $uri $uri/ @node;