Browse Source

Allow extension origins (still needs explicit listing), fixes #1686

Nicholas Dudfield 1 năm trước cách đây
mục cha
commit
8baaaa39c0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      server/routes.go

+ 1 - 0
server/routes.go

@@ -837,6 +837,7 @@ func (s *Server) GenerateRoutes() http.Handler {
 
 	config := cors.DefaultConfig()
 	config.AllowWildcard = true
+	config.AllowBrowserExtensions = true
 
 	config.AllowOrigins = origins
 	for _, allowOrigin := range defaultAllowOrigins {