diff --git a/nginx.conf b/nginx.conf index 484dc00..4b6fc8f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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';