allow cors

This commit is contained in:
2023-07-18 14:35:15 +08:00
parent f0c7a95f77
commit c35f169e3b
2 changed files with 24 additions and 0 deletions

View File

@@ -89,6 +89,9 @@ func main() {
})
})
// CORS handler
engine.Use(corsMiddleware())
// get authorization config from db
db.Take(&authConfig, "key = ?", "authorization")