/y-server-plugin-cors

y-server-cors is a y-server plugin to allow cors.

Primary LanguageJavaScriptMIT LicenseMIT

y-server-plugin-cors

y-server-plugin-cors is a y-server plugin to allow cors.

Install

npm install y-server-plugin-cors

Usage

const yServer = require('y-server');
const corsPlugin = require('y-server-plugin-cors');

yServer({
  plugins: [
    corsPlugin(),
  ],
})

Notes

  • path is the path allow cors.

License

MIT License