From b4b4acdd943c3f168063ab2e1c85965d793d480f Mon Sep 17 00:00:00 2001
From: Tucker Gary Siegel <tgsiegel@terpmail.umd.edu>
Date: Thu, 30 Sep 2021 14:31:19 -0400
Subject: [PATCH] remove cors protection

---
 main.go | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/main.go b/main.go
index 4d2db00..41f8664 100644
--- a/main.go
+++ b/main.go
@@ -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) {
 	app.Use(requestid.New(requestid.Config{
 		Next:   nil,
@@ -94,7 +87,6 @@ func CreateFiberApp() *fiber.App {
 
 	app := fiber.New(createFiberConfig())
 	app.Use(recover.New())
-	registerCors(app)
 	registerSwagger(app)
 	registerPrometheus(app)
 	registerLogging(app)
-- 
GitLab