Skip to content

Commit cf86aa1

Browse files
committed
be/int/web/reception/browser: adds constructor
1 parent e9c2697 commit cf86aa1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • backend/internal/web/reception/browser

backend/internal/web/reception/browser/origin.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,9 @@ func (c OriginChecker) Handler(w http.ResponseWriter, r *http.Request) {
6161
c.actual(w, r)
6262
}
6363
}
64+
65+
func NewOriginChecker(allow ...*Matcher) *OriginChecker {
66+
return &OriginChecker{
67+
Allowances: allow,
68+
}
69+
}

0 commit comments

Comments
 (0)