We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f01c043 commit ed4b5cfCopy full SHA for ed4b5cf
1 file changed
backend/internal/web/reception/browser/origin.go
@@ -36,7 +36,7 @@ func (c OriginChecker) preflight(w http.ResponseWriter, r *http.Request) {
36
func (c OriginChecker) actual(w http.ResponseWriter, r *http.Request) {
37
allowance := matchAny(c.Allowances, r.Header.Get(headers.Origin), r.Method, r.URL.Path, slices.Collect(maps.Keys(r.Header)))
38
39
- if allowance != nil {
+ if allowance == nil {
40
http.Error(w, "Please try again using the official website.", http.StatusForbidden)
41
return
42
}
0 commit comments