Преглед на файлове

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

Nicholas Dudfield преди 1 година
родител
ревизия
8baaaa39c0
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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 {