plugins
plugins
@zely/plugin-cors

@zely/plugin-cors

#Installation

Install using npm:

Terminal
npm i --save-dev @zely/plugin-cors

#Usage

Typescript
// zely.config.ts
import { defineConfig } from 'zely/config';
import cors from '@zely/plugin-cors';
 
export default defineConfig({
  plugins: [cors.cors()],
});

#zely add

If you use zely add, you don't have to install and apply plugins cumbersomely.

Terminal
npx zely@2 add cors