Skip to content
Permalink
Browse files

Add missing allowed header

  • Loading branch information...
corebreaker committed May 16, 2019
1 parent f971fef commit 42d535b41757661c0dcd41c32c13572b00aef398
Showing with 1 addition and 1 deletion.
  1. +1 −1 hub/server.go
@@ -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 {

0 comments on commit 42d535b

Please sign in to comment.
You can’t perform that action at this time.