From ac83c0a269c0fc886a3c756c6087532dafb3f493 Mon Sep 17 00:00:00 2001 From: manusdlai Date: Sun, 16 Feb 2025 17:46:32 +0530 Subject: [PATCH] cors update --- server/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api.py b/server/api.py index 122cbd4..93cab3e 100644 --- a/server/api.py +++ b/server/api.py @@ -39,7 +39,7 @@ app.config['MAX_CONTENT_LENGTH'] = 20 * 1024 * 1024 # 20 MB # Configure CORS for frontend origin CORS(app, resources={r"/api/*": { - "origins": ["https://g0c0848ggco0cgw4gss8gws0.dev3vds1.link", "http://localhost:5173"], + "origins": ["https://g0c0848ggco0cgw4gss8gws0.dev3vds1.link", "http://localhost:5173","*"], "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], "allow_headers": ["Content-Type"] }})