mirror of
https://github.com/ollama/ollama.git
synced 2026-10-24 04:21:28 +00:00
Allow extension origins (still needs explicit listing), fixes #1686
This commit is contained in:
parent
cd8fad3398
commit
8baaaa39c0
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue