Skip to content

Commit

Permalink
wildcard in cors
Browse files Browse the repository at this point in the history
  • Loading branch information
pratham1729 committed Aug 18, 2024
1 parent 74405c5 commit 0711f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func Start() {
r := gin.Default()
// Set up CORS middleware
config := cors.Config{
AllowOrigins: []string{"https://accounts.sdslabs.co/"},
AllowOrigins: []string{"https://*.sdslabs.co"},
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
AllowHeaders: []string{"Authorization", "Content-Type"},
ExposeHeaders: []string{"Content-Length"},
Expand Down

0 comments on commit 0711f2e

Please sign in to comment.