Skip to content

Commit 8912764

Browse files
update cors
1 parent 96b51c2 commit 8912764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/handlers/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (s *Server) setupRoutes() {
4141
s.router.Use(gin.Recovery())
4242

4343
s.router.Use(cors.New(cors.Config{
44-
AllowOrigins: []string{"http://localhost:3000", "https://forgotten.onrender.com"},
44+
AllowOrigins: []string{"http://localhost:3000", "https://forgotten.onrender.com", "https://127.0.0.1:5500"},
4545
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
4646
AllowHeaders: []string{"Origin", "Content-Type", "Accept", "Authorization"},
4747
ExposeHeaders: []string{"Content-Length"},

0 commit comments

Comments
 (0)