This commit is contained in:
2022-04-08 16:56:34 +03:00
parent cf20e1c5e7
commit b6120de4d4
2 changed files with 8 additions and 13 deletions
+8
View File
@@ -28,6 +28,14 @@ server {
root "/var/www/html";
location /project {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
alias "/home/ijl/ijl/project/";
}
# location / {
# add_header 'Access-Control-Allow-Origin' '*';
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';