We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9c2697 commit cf86aa1Copy full SHA for cf86aa1
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