extensions/cors/ds_shelf_origin_checker library

Functions

dsShelfOriginAllowAll(String origin) bool
Allows any origin.
dsShelfOriginOneOf(List<String> allowed) DsShelfOriginChecker
Allows only the exact strings or regex patterns in allowed.

Typedefs

DsShelfOriginChecker = bool Function(String origin)
A function that returns true if a given origin is allowed.