Skip to content

Commit

Permalink
Merge pull request #89 from corebreaker/missing-header
Browse files Browse the repository at this point in the history
Add missing allowed header
  • Loading branch information
dunglas committed May 22, 2019
2 parents f971fef + 42d535b commit af962cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hub/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (h *Hub) chainHandlers() http.Handler {
var corsHandler http.Handler
if len(h.options.CorsAllowedOrigins) > 0 {
allowedOrigins := handlers.AllowedOrigins(h.options.CorsAllowedOrigins)
allowedHeaders := handlers.AllowedHeaders([]string{"authorization"})
allowedHeaders := handlers.AllowedHeaders([]string{"authorization", "cache-control"})

corsHandler = handlers.CORS(handlers.AllowCredentials(), allowedOrigins, allowedHeaders)(r)
} else {
Expand Down

0 comments on commit af962cd

Please sign in to comment.