Skip to content

Commit

Permalink
update: added client app origin
Browse files Browse the repository at this point in the history
  • Loading branch information
thegera4 committed Feb 25, 2024
1 parent 5ebaedb commit 3c648ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func main() {
server := gin.Default()

server.Use(cors.New(cors.Config{
AllowOrigins: []string{"http://localhost:3000"},
AllowOrigins: []string{"http://localhost:3000", "https://nextjs-events-lovat.vercel.app"},
AllowMethods: []string{"PUT", "DELETE", "GET", "POST"},
AllowHeaders: []string{"Origin", "Content-Type", "Content-Length", "Authorization"},
ExposeHeaders: []string{"Content-Length"},
Expand Down

0 comments on commit 3c648ac

Please sign in to comment.