We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4a9464 commit a180f83Copy full SHA for a180f83
1 file changed
backend/internal/web/reception/browser/origin.go
@@ -61,3 +61,9 @@ func (c OriginChecker) Handler(w http.ResponseWriter, r *http.Request) {
61
c.actual(w, r)
62
}
63
64
+
65
+func NewOriginChecker(allow ...*Matcher) *OriginChecker {
66
+ return &OriginChecker{
67
+ Allowances: allow,
68
+ }
69
+}
0 commit comments