refactor: clean up code, remove unused methods
This commit is contained in:
11
pkg/proxy.go
11
pkg/proxy.go
@@ -100,14 +100,3 @@ func (proxyRoute ProxyRoute) ProxyHandler() http.HandlerFunc {
|
||||
proxy.ServeHTTP(w, r)
|
||||
}
|
||||
}
|
||||
|
||||
func isAllowed(cors []string, r *http.Request) bool {
|
||||
for _, origin := range cors {
|
||||
if origin == r.Header.Get("Origin") {
|
||||
return true
|
||||
}
|
||||
continue
|
||||
}
|
||||
return false
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user