Attempt #3 to fix CORS issue and docker build.

This commit is contained in:
Karmaa
2025-02-22 00:39:34 -06:00
parent 1addd43039
commit 5c5fe57dad
3 changed files with 8 additions and 5 deletions

View File

@@ -21,15 +21,17 @@ http {
# Proxy IO requests
location /socket.io/ {
proxy_pass http://localhost:8081;
proxy_pass http://0.0.0.0:8081;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
# CORS headers
# CORS settings
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Headers' '*';
}
# Error pages