fix: gateway conf doesn't work (#2968)

This commit is contained in:
Kevin Wan
2023-03-05 22:19:58 +08:00
committed by GitHub
parent d9d79e930d
commit 0d5a68869d
3 changed files with 1 additions and 4 deletions

View File

@@ -78,6 +78,7 @@ func checkAndSetHeaders(w http.ResponseWriter, r *http.Request, origins []string
func isOriginAllowed(allows []string, origin string) bool {
origin = strings.ToLower(origin)
for _, allow := range allows {
if allow == allOrigins {
return true