add local host to headers for nginx
This commit is contained in:
parent
b9120aad76
commit
1def4f5079
|
@ -5,13 +5,13 @@ server {
|
|||
index index.html index.htm;
|
||||
|
||||
location / {
|
||||
add_header 'Access-Control-Allow-Origin' 'https://www.boot.dev';
|
||||
add_header 'Access-Control-Allow-Origin' 'https://www.boot.dev, http://localhost:5000, http://localhost:8000';
|
||||
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';
|
||||
|
||||
if ($request_method = 'OPTIONS') {
|
||||
add_header 'Access-Control-Allow-Origin' 'https://www.boot.dev';
|
||||
add_header 'Access-Control-Allow-Origin' 'https://www.boot.dev, http://localhost:5000, http://localhost:8000';
|
||||
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';
|
||||
|
|
Loading…
Reference in New Issue