Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Cors
for setting CORS headers (#112)
* Add `Cors` for settings CORS headers * Pass layer along so config isn't lost * Support allowing origin via closure * Check for `Access-Control-Request-Method` * Use `None` as default for `Max-Age` * Add example for allowing multiple headers * Fix wrong method check * Also check for any * Restrictive config by default, with "permissive" helper * Change status for prelight response * Make setting origin with predicate more consistent * Merge clauses * Use `WILDCARD` constant * typo * Conditionally set `allow-credentials` * Add note to `Access-Control-Allow-Headers` * minor docs tweaks * Make `Any` constructor private and expose `any()` function
- Loading branch information