This commit is contained in:
Donald Zou
2025-08-28 17:58:02 +08:00
parent 85fa427134
commit 3b3c071402
58 changed files with 165 additions and 95 deletions

View File

@@ -90,7 +90,7 @@ _, APP_PREFIX = DashboardConfig.GetConfig("Server", "app_prefix")
cors = CORS(app, resources={rf"{APP_PREFIX}/api/*": {
"origins": "*",
"methods": "DELETE, POST, GET, OPTIONS",
"allow_headers": ["Content-Type", "wg-dashboard-apikey"]
"allow_headers": ["Content-Type", "wg-dashboard-apikey", "name"]
}})
'''