Arnaud Dagnelies
9af95c886e
fix: Updated CORS ( #693 )
...
* Updated CORS
Do not call `next` for OPTIONS pre-flight requests to avoid side effects and more sensible defaults.
* restoring default cors headers
* restoring cors default allowed methods to avoid breaking change
* Deno dist stuff
2022-12-01 00:11:06 +09:00
Yusuke Wada
6a96ace96a
feat(types): introduce CustomHandler
interface ( #637 )
2022-11-01 00:07:56 +09:00
Taku Amano
8eb20215a5
feat(cors): Enable to check origin header by a function. ( #533 )
2022-09-16 20:59:27 +09:00
Taku Amano
bbb95585d4
Check in Origin header instead of Referer ( #532 )
...
* refactor(cors): Check in Origin header instead of Referer.
* refactor(utils/url): Remove unused function getDomainFromURL.
* chore: denoify
2022-09-16 07:23:31 +09:00
Yusuke Wada
df64870f54
feat(cors): allow multiple origins ( #531 )
...
* feat(validator): add `isBoolean` and `isNumber`
* feat(cors): allow multiple origins
Close #503
2022-09-16 00:19:02 +09:00
Yusuke Wada
e2d704fd4f
fix(types): add types to middleware correctly ( #521 )
2022-09-14 08:17:20 +09:00
Yusuke Wada
d9e9e62e47
feat: support Deno! ( #336 )
2022-07-02 15:09:45 +09:00