@busyhe/ynn-plugin-cors

用于处理CORS请求授权的Ynn插件。

Usage no npm install needed!

<script type="module">
  import busyheYnnPluginCors from 'https://cdn.skypack.dev/@busyhe/ynn-plugin-cors';
</script>

README

@busyhe/ynn-plugin-cors

CORS请求处理插件。

Installation

$npm install --save @busyhe/ynn-plugin-cors

Usage

const Ynn = require( 'ynn' );
const app = new Ynn( {
    plugins : {
        cors : {}
    }
} );