Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
qorus
prometheus
Commits
9c4e2586
Commit
9c4e2586
authored
Jan 21, 2019
by
Hrishikesh Barman
Committed by
Goutham Veeramachaneni
Jan 21, 2019
Browse files
corrected regex string check for anyorigin(*) (#5117)
Signed-off-by:
Hrishikesh Barman
<
hrishikeshbman@gmail.com
>
parent
24f19f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
util/httputil/cors.go
View file @
9c4e2586
...
...
@@ -36,7 +36,7 @@ func SetCORS(w http.ResponseWriter, o *regexp.Regexp, r *http.Request) {
w
.
Header
()
.
Set
(
k
,
v
)
}
if
o
.
String
()
==
"
.*
"
{
if
o
.
String
()
==
"
^(?:.*)$
"
{
w
.
Header
()
.
Set
(
"Access-Control-Allow-Origin"
,
"*"
)
return
}
...
...
Write
Preview
Supports
Markdown
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