@zenweb/cors
TypeScript icon, indicating that this package has built-in type declarations

5.0.1 • Public • Published

zenweb-cors

zenweb cors module

跨域支持

Quick start

$ npm i @zenweb/cors
import { create } from 'zenweb';
import modCors from '@zenweb/cors';

const app = create();

app.setup(modCors({  origin: '*' }));

Changelog

2.4.0

  • @koa/cors: ^3
  • null 检查

Readme

Keywords

Package Sidebar

Install

npm i @zenweb/cors

Weekly Downloads

19

Version

5.0.1

License

MIT

Unpacked Size

1.72 kB

Total Files

4

Last publish

Collaborators

  • yefei777