update: improve cors checking logic
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 3m44s

This commit is contained in:
2025-09-11 13:18:28 +07:00
parent f5a995e20f
commit 659b2b82ec

View File

@ -78,7 +78,7 @@ func NewHTTPServer() error {
if isAllowedAllCors {
return true
} else {
isAllowed, ok := allowedCors[r.Host]
isAllowed, ok := allowedCors[r.Header.Get("Origin")]
if !ok || !isAllowed {
return false
}