mirror of https://github.com/ollama/ollama.git
				
				
				
			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
This commit is contained in:
		
						commit
						0101e76dbe
					
				|  | @ -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 { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue