A permissive default
Build a from a Configuration
Build a from a Configuration
The configuration is as follows:
cors { path.prefixes = ["/myresource", ...] # If left undefined, all paths are filtered allowed { origins = ["http://...", ...] # If left undefined, all origins are allowed http { methods = ["PATCH", ...] # If left undefined, all methods are allowed headers = ["Custom-Header", ...] # If left undefined, all headers are allowed } } exposed.headers = [...] # empty by default supports.credentials = true # true by default preflight.maxage = 3600 # 3600 by default }
Helpers to build CORS policy configurations