Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
8baaaa39
Commit
8baaaa39
authored
Jan 05, 2024
by
Nicholas Dudfield
Browse files
Allow extension origins (still needs explicit listing), fixes #1686
parent
cd8fad33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
server/routes.go
server/routes.go
+1
-0
No files found.
server/routes.go
View file @
8baaaa39
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment