mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
server: add OpenAI-Beta
header to CORS safelist
alphabetized the compat list and then added a single header fixes: #9801
This commit is contained in:
parent
64a9cc8f05
commit
97fe45e36d
1 changed files with 8 additions and 7 deletions
|
@ -1152,17 +1152,18 @@ func (s *Server) GenerateRoutes(rc *ollama.Registry) (http.Handler, error) {
|
|||
"X-Requested-With",
|
||||
|
||||
// OpenAI compatibility headers
|
||||
"x-stainless-lang",
|
||||
"x-stainless-package-version",
|
||||
"x-stainless-os",
|
||||
"OpenAI-Beta",
|
||||
"x-stainless-arch",
|
||||
"x-stainless-async",
|
||||
"x-stainless-custom-poll-interval",
|
||||
"x-stainless-helper-method",
|
||||
"x-stainless-lang",
|
||||
"x-stainless-os",
|
||||
"x-stainless-package-version",
|
||||
"x-stainless-poll-helper",
|
||||
"x-stainless-retry-count",
|
||||
"x-stainless-runtime",
|
||||
"x-stainless-runtime-version",
|
||||
"x-stainless-async",
|
||||
"x-stainless-helper-method",
|
||||
"x-stainless-poll-helper",
|
||||
"x-stainless-custom-poll-interval",
|
||||
"x-stainless-timeout",
|
||||
}
|
||||
corsConfig.AllowOrigins = envconfig.AllowedOrigins()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue