Skip to content
Myr

fix: Updated CORS (#693)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* 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

authored by Arnaud Dagnelies · committed by GitHub · parent 1f43164 · Browse files · 2 files+10 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−6 removed

  • other:+10 added−6 removed

2 files+10 added−6 removed

modified:deno_dist/middleware/cors/index.ts+5 added-3 removed
modified:src/middleware/cors/index.ts+5 added-3 removed