Skip to content
Myr

feat: CORS middleware (#53)

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

* Update blog example * Implemented * Fixed blog example

authored by Yusuke Wada · committed by GitHub · parent 98924ce · Browse files · 6 files+145 added−3 removed
This commit

State

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

Diff stats

6 files+145 added−3 removed

  • tests:+63 added−0 removed
  • other:+82 added−3 removed

6 files+145 added−3 removed

modified:example/blog/src/index.ts+2 added-1 removed
modified:example/blog/package.json+1 added-1 removed
modified:example/blog/tsconfig.json-1 removed
added:src/middleware/cors/cors.test.ts+63 added
added:src/middleware/cors/cors.ts+77 added
modified:src/middleware.ts+2 added