Skip to content

Commit

Permalink
chore: added more allow origins
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahcks committed Jul 28, 2024
1 parent d5fcd7e commit 2f42664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func New(gctx global.Context) error {
}))

app.Use(cors.New(cors.Config{
AllowOrigins: "http://localhost:3001,https://ret-paladin-bot-website.vercel.app",
AllowOrigins: "http://localhost:3001,https://ret-paladin-bot-website.vercel.app,https://retpaladinbot.com,https://www.retpaladinbot.com",
AllowMethods: "GET,POST,PUT,PATCH,DELETE",
AllowHeaders: strings.Join(allowedHeaders, ", "),
}))
Expand Down

0 comments on commit 2f42664

Please sign in to comment.