mirror of
https://github.com/ollama/ollama.git
synced 2025-03-26 17:51:48 +01:00
Allow extension origins (still needs explicit listing), fixes #1686
This commit is contained in:
parent
cd8fad3398
commit
8baaaa39c0
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user