feat(backend): add cors
This commit is contained in:
@@ -130,6 +130,7 @@ func main() {
|
||||
}
|
||||
|
||||
router := gin.Default()
|
||||
router.Use(handlers.CorsMiddleware("http://127.0.0.1:5173;http://localhost:5173"))
|
||||
docs.SwaggerInfo.BasePath = "/api/v1"
|
||||
docs.SwaggerInfo.Title = "HellreigN"
|
||||
docs.SwaggerInfo.Version = "1.0"
|
||||
|
||||
Reference in New Issue
Block a user