cors update

This commit is contained in:
manusdlai 2025-02-16 17:46:32 +05:30
parent 98bfbeab3b
commit ac83c0a269

View File

@ -39,7 +39,7 @@ app.config['MAX_CONTENT_LENGTH'] = 20 * 1024 * 1024 # 20 MB
# Configure CORS for frontend origin # Configure CORS for frontend origin
CORS(app, resources={r"/api/*": { 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"], "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
"allow_headers": ["Content-Type"] "allow_headers": ["Content-Type"]
}}) }})