Skip to content

Commit

Permalink
set headers to *
Browse files Browse the repository at this point in the history
  • Loading branch information
pluja committed Oct 27, 2023
1 parent 401c0b4 commit d9284e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blogo/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ func InitRoutes() *chi.Mux {

// Setup CORS
r.Use(cors.Handler(cors.Options{
// AllowedOrigins: []string{"https://foo.com"}, // Use this to allow specific origin hosts
AllowedOrigins: []string{"https://*", "http://*"},
AllowedOrigins: []string{"*"},
// AllowOriginFunc: func(r *http.Request, origin string) bool { return true },
AllowedMethods: []string{"GET"},
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
Expand Down

0 comments on commit d9284e7

Please sign in to comment.