We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96b51c2 commit 8912764Copy full SHA for 8912764
internal/handlers/server.go
@@ -41,7 +41,7 @@ func (s *Server) setupRoutes() {
41
s.router.Use(gin.Recovery())
42
43
s.router.Use(cors.New(cors.Config{
44
- AllowOrigins: []string{"http://localhost:3000", "https://forgotten.onrender.com"},
+ AllowOrigins: []string{"http://localhost:3000", "https://forgotten.onrender.com", "https://127.0.0.1:5500"},
45
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
46
AllowHeaders: []string{"Origin", "Content-Type", "Accept", "Authorization"},
47
ExposeHeaders: []string{"Content-Length"},
0 commit comments