connect-cors:连接心

时间:2021-05-18 04:25:47
【文件属性】:
文件名称:connect-cors:连接心
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-18 04:25:47
CoffeeScript 连接CORS 已弃用! 使用代替 支持用于Node.JS的Connect“预检” OPTIONS请求的CORS模块 安装 npm install connect-cors 用法 var Connect = require ( 'connect' ) , CORS = require ( 'connect-cors' ) , options = { } , server ; server = Connect . createServer ( // uses reasonable defaults when no options are given CORS ( options ) , function ( req , res ) { res . writeHead ( 200 , { 'Content-Type' : 'text/plai
【文件预览】:
connect-cors-master
----.gitignore(15B)
----package.json(708B)
----Makefile(87B)
----README.md(4KB)
----lib()
--------connect-cors.js(4KB)
--------connect-cors.coffee(9KB)
----test()
--------test-global-settings.js(647B)
--------helpers()
--------test-global-settings.curl(2KB)
--------connect-cors.test.js(5KB)
--------test-default-config.curl(2KB)
--------test-default-config.js(213B)

网友评论