Skip to content
Snippets Groups Projects
Commit b4b4acdd authored by Tucker Gary Siegel's avatar Tucker Gary Siegel
Browse files

remove cors protection

parent c9ef9057
No related branches found
No related tags found
No related merge requests found
...@@ -32,13 +32,6 @@ func registerSwagger(app *fiber.App) { ...@@ -32,13 +32,6 @@ func registerSwagger(app *fiber.App) {
} }
} }
func registerCors(app *fiber.App) {
// app.Use(cors.New(cors.Config{
// AllowOrigins: "http://localhost:3000, http://localhost:4200, http://localhost:5000, http://localhost:12321",
// AllowHeaders: "Origin, Content-Type, Accept",
// }))
}
func registerLogging(app *fiber.App) { func registerLogging(app *fiber.App) {
app.Use(requestid.New(requestid.Config{ app.Use(requestid.New(requestid.Config{
Next: nil, Next: nil,
...@@ -94,7 +87,6 @@ func CreateFiberApp() *fiber.App { ...@@ -94,7 +87,6 @@ func CreateFiberApp() *fiber.App {
app := fiber.New(createFiberConfig()) app := fiber.New(createFiberConfig())
app.Use(recover.New()) app.Use(recover.New())
registerCors(app)
registerSwagger(app) registerSwagger(app)
registerPrometheus(app) registerPrometheus(app)
registerLogging(app) registerLogging(app)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment