y-server-plugin-cors

0.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i y-server-plugin-cors

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • smadey