Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(typings): add interface Config['cors'] (#12)
* chore(typings): add interface Config['cors'] usage: ```ts // {app_root}/config/config.default.ts import { Config as CorsConfig } from 'egg-cors' export default (appInfo: EggAppConfig) => { const config = <PowerPartial<EggAppConfig> & CorsConfig> {} // ... config.cors = { origin: '*', allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS', } return config } ```
- Loading branch information