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

Merge pull request #1797 from sublimator/nd-allow-extension-origins-still-needs-explicit-listing-2024-01-05

fix: allow extension origins (still needs explicit listing), fixes #1686
Michael Yang преди 1 година
родител
ревизия
0101e76dbe
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      server/routes.go

+ 1 - 0
server/routes.go

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