fix(security): fix sec-fetch filter
This commit is contained in:
@@ -19,7 +19,7 @@ func SecFetchFilter(next http.Handler) http.Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_, exists := allowedSites[r.Header.Get("Sec-Fetch-Site")]
|
_, exists := allowedSites[r.Header.Get("Sec-Fetch-Site")]
|
||||||
if !exists {
|
if exists {
|
||||||
next.ServeHTTP(w, r)
|
next.ServeHTTP(w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user