Skip to content

Commit

Permalink
friendlier cors
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Harlalka <rajivharlalka009@gmail.com>
  • Loading branch information
rajivharlalka committed Nov 14, 2023
1 parent 6537362 commit cca0aa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func main() {
AllowedOrigins: []string{os.Getenv("ORIGINS_ALLOWED")},
AllowCredentials: true,
AllowedHeaders: []string{"*"},
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE"},
})

log.Info().Msg("Starting server on port : " + port)
Expand Down

0 comments on commit cca0aa7

Please sign in to comment.