This commit is contained in:
Primakov Alexandr Alexandrovich 2022-04-08 16:56:34 +03:00
parent cf20e1c5e7
commit b6120de4d4
2 changed files with 8 additions and 13 deletions

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';

13
80.conf
View File

@ -176,19 +176,6 @@ server {
}
}
server {
listen 80;
server_name poject.inno-js.ru;
location / {
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/";
}
}
# server {
# listen 80;
# index index.html;