This commit is contained in:
2021-04-13 23:18:34 -04:00
parent b86e69b60e
commit 78b58d4900
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ server {
try_files $uri /index.php$is_args$args;
}
add_header 'Access-Control-Allow-Origin' 'http://localhost:8080';
add_header 'Access-Control-Allow-Origin' "$http_origin";
add_header 'Access-Control-Allow-Methods' 'GET,POST,PUT,DELETE,OPTIONS';
add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept";
add_header 'Content-Type' 'application/json';