{"_id":"egg-cors","_rev":"1213462","name":"egg-cors","description":"cors plugin for egg","dist-tags":{"latest":"2.2.3"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"time":{"modified":"2021-10-13T05:46:47.000Z","created":"2016-05-26T09:06:53.030Z","2.2.3":"2019-11-14T04:25:35.034Z","2.2.2":"2019-10-25T14:26:38.457Z","2.2.1":"2019-10-22T06:53:12.178Z","2.2.0":"2019-03-11T05:42:11.326Z","2.1.2":"2018-11-30T01:45:43.605Z","2.1.1":"2018-10-01T02:34:15.857Z","2.1.0":"2018-07-11T12:55:51.787Z","2.0.0":"2017-11-23T07:22:01.885Z","1.2.0":"2017-07-24T03:35:16.445Z","1.1.0":"2017-03-24T08:01:44.532Z","1.0.0":"2016-11-04T06:42:49.543Z","0.0.2":"2016-07-15T08:09:13.744Z","0.0.1":"2016-05-26T09:06:53.030Z"},"users":{},"author":{"name":"dead_horse"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"versions":{"2.2.3":{"name":"egg-cors","version":"2.2.3","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin","cors"],"dependencies":{"@koa/cors":"^3.0.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.11.2","egg-bin":"^4.9.0","egg-ci":"^1.9.2","egg-mock":"^3.20.1","egg-security":"^1.2.1","eslint":"^5.6.1","eslint-config-egg":"^7.1.0","supertest":"^3.3.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","autod":"autod"},"bug":{"url":"https://github.com/eggjs/egg/issues"},"ci":{"version":"8, 10, 12"},"author":{"name":"dead_horse"},"gitHead":"f5030a9042fa277972ce786cdabbbba8c1dddafa","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@2.2.3","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"shasum":"a21a0f6b2dc627a4e778a7282c1adf99aa63f88f","size":3981,"noattachment":false,"key":"/egg-cors/-/egg-cors-2.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-2.2.3.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-cors_2.2.3_1573705534833_0.7974744272934797"},"_hasShrinkwrap":false,"publish_time":1573705535034,"_cnpm_publish_time":1573705535034},"2.2.2":{"name":"egg-cors","version":"2.2.2","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin","cors"],"dependencies":{"@koa/cors":"^3.0.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.11.2","egg-bin":"^4.9.0","egg-ci":"^1.9.2","egg-mock":"^3.20.1","egg-security":"^1.2.1","eslint":"^5.6.1","eslint-config-egg":"^7.1.0","supertest":"^3.3.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","autod":"autod"},"bug":{"url":"https://github.com/eggjs/egg/issues"},"ci":{"version":"8, 10"},"author":{"name":"dead_horse"},"gitHead":"7ae83b302fa7083203c45c6363d959ee37c9dab9","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@2.2.2","_nodeVersion":"10.15.1","_npmVersion":"6.11.3","dist":{"shasum":"0bd9aa5e2c9e4d801b482dd14270d8b19ee71662","size":3850,"noattachment":false,"key":"/egg-cors/-/egg-cors-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-2.2.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmUser":{"name":"atian25","email":"atian25@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-cors_2.2.2_1572013598313_0.6089610197332014"},"_hasShrinkwrap":false,"publish_time":1572013598457,"_cnpm_publish_time":1572013598457},"2.2.1":{"name":"egg-cors","version":"2.2.1","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin","cors"],"dependencies":{"@koa/cors":"^3.0.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.11.2","egg-bin":"^4.9.0","egg-ci":"^1.9.2","egg-mock":"^3.20.1","egg-security":"^1.2.1","eslint":"^5.6.1","eslint-config-egg":"^7.1.0","supertest":"^3.3.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","autod":"autod"},"bug":{"url":"https://github.com/eggjs/egg/issues"},"ci":{"version":"8, 10"},"author":{"name":"dead_horse"},"gitHead":"288a7b75163ffce94d361557ecc5019d1f9576ec","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@2.2.1","_nodeVersion":"10.16.0","_npmVersion":"6.10.0","dist":{"shasum":"4b13d62ed74e671dcde81eaab7446b99999e9150","size":3684,"noattachment":false,"key":"/egg-cors/-/egg-cors-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-2.2.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-cors_2.2.1_1571727192049_0.08599468577901992"},"_hasShrinkwrap":false,"publish_time":1571727192178,"_cnpm_publish_time":1571727192178},"2.2.0":{"name":"egg-cors","version":"2.2.0","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin","cors"],"dependencies":{"@koa/cors":"^3.0.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.11.2","egg-bin":"^4.9.0","egg-ci":"^1.9.2","egg-mock":"^3.20.1","egg-security":"^1.2.1","eslint":"^5.6.1","eslint-config-egg":"^7.1.0","supertest":"^3.3.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","autod":"autod"},"bug":{"url":"https://github.com/eggjs/egg/issues"},"ci":{"version":"8, 10"},"author":{"name":"dead_horse"},"gitHead":"f733e5aafdb067755291f0b3a0762c2ada9dd893","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@2.2.0","_npmVersion":"5.8.0","_nodeVersion":"10.15.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"d77a589546668247936a7ab4d17bb1bffa529119","size":3490,"noattachment":false,"key":"/egg-cors/-/egg-cors-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-2.2.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-cors_2.2.0_1552282931188_0.9189164950626758"},"_hasShrinkwrap":false,"publish_time":1552282931326,"_cnpm_publish_time":1552282931326},"2.1.2":{"name":"egg-cors","version":"2.1.2","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin","cors"],"dependencies":{"@koa/cors":"^2.2.2"},"devDependencies":{"autod":"^3.0.1","egg":"^2.11.2","egg-bin":"^4.9.0","egg-ci":"^1.9.2","egg-mock":"^3.20.1","egg-security":"^1.2.1","eslint":"^5.6.1","eslint-config-egg":"^7.1.0","supertest":"^3.3.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","autod":"autod"},"bug":{"url":"https://github.com/eggjs/egg/issues"},"ci":{"version":"8, 10"},"author":{"name":"dead_horse"},"gitHead":"66180061890b89b641189eacc371fbc75a8bb2f3","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@2.1.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"1fa07f0b55977a9561bcf7a18ddb103d42fb56a9","size":3406,"noattachment":false,"key":"/egg-cors/-/egg-cors-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-2.1.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-cors_2.1.2_1543542343472_0.5994427370381386"},"_hasShrinkwrap":false,"publish_time":1543542343605,"_cnpm_publish_time":1543542343605},"2.1.1":{"name":"egg-cors","version":"2.1.1","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin","cors"],"dependencies":{"@koa/cors":"^2.2.2"},"devDependencies":{"autod":"^3.0.1","egg":"^2.11.2","egg-bin":"^4.9.0","egg-ci":"^1.9.2","egg-mock":"^3.20.1","egg-security":"^1.2.1","eslint":"^5.6.1","eslint-config-egg":"^7.1.0","supertest":"^3.3.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","autod":"autod"},"bug":{"url":"https://github.com/eggjs/egg/issues"},"ci":{"version":"8, 10"},"author":{"name":"dead_horse"},"gitHead":"fda149ae5c6e91b71dcd4fab113b9f3f83f60718","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@2.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"56a7f71f41369f2dfab78b387ea7c37d60490c33","size":3384,"noattachment":false,"key":"/egg-cors/-/egg-cors-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-2.1.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-cors_2.1.1_1538361255692_0.6205601282476478"},"_hasShrinkwrap":false,"publish_time":1538361255857,"_cnpm_publish_time":1538361255857},"2.1.0":{"name":"egg-cors","version":"2.1.0","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"files":["app","config","app.js","index.d.ts"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin","cors"],"dependencies":{"@koa/cors":"^2.2.1"},"devDependencies":{"autod":"^3.0.1","egg":"^2.0.0","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","egg-security":"^1.2.1","eslint":"^4.11.0","eslint-config-egg":"^5.1.1","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 10"},"author":{"name":"dead_horse"},"gitHead":"b6ea4f23f8e1d0ecfd22778ddc4f640ab8cc3842","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@2.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"46bc924f2a33b6ebe5625866cb266384aabaa5d8","size":3275,"noattachment":false,"key":"/egg-cors/-/egg-cors-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-2.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-cors_2.1.0_1531313751739_0.030998069191907618"},"_hasShrinkwrap":false,"publish_time":1531313751787,"_cnpm_publish_time":1531313751787},"2.0.0":{"name":"egg-cors","version":"2.0.0","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"files":["app","config","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin","cors"],"dependencies":{"@koa/cors":"^2.2.1"},"devDependencies":{"autod":"^3.0.1","egg":"^2.0.0","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","egg-security":"^1.2.1","eslint":"^4.11.0","eslint-config-egg":"^5.1.1","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 9"},"author":{"name":"dead_horse"},"gitHead":"da2b18bb3b7fcc6d660afd804a0e44ca508ca015","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"6c880e19b5675adc45dbab7463d026a788a19c1b","size":3065,"noattachment":false,"key":"/egg-cors/-/egg-cors-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-2.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-cors-2.0.0.tgz_1511421721802_0.744416126050055"},"directories":{},"publish_time":1511421721885,"_cnpm_publish_time":1511421721885,"_hasShrinkwrap":false},"1.2.0":{"name":"egg-cors","version":"1.2.0","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"files":["app","config","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin","cors"],"dependencies":{"kcors":"^1.3.2"},"devDependencies":{"autod":"^2.8.0","egg":"^1.6.1","egg-bin":"^4.0.5","egg-ci":"^1.8.0","egg-mock":"^3.8.0","egg-security":"^1.2.1","eslint":"^4.3.0","eslint-config-egg":"^5.0.0","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8"},"author":{"name":"dead_horse"},"gitHead":"1d139648bed6aa24e17153362751f7e12d86857a","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@1.2.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.4","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"41b85cdfcf9444cf1721dc385c011d03a1b429bb","size":2928,"noattachment":false,"key":"/egg-cors/-/egg-cors-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-1.2.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-cors-1.2.0.tgz_1500867316373_0.8985828142613173"},"directories":{},"publish_time":1500867316445,"_hasShrinkwrap":false,"_cnpm_publish_time":1500867316445},"1.1.0":{"name":"egg-cors","version":"1.1.0","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"files":["app","config","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","eggPlugin","egg-plugin"],"dependencies":{"kcors":"^1.3.2"},"devDependencies":{"autod":"^2.8.0","egg":"^1.0.0","egg-bin":"^3.1.0","egg-ci":"^1.6.0","egg-mock":"^3.2.0","egg-security":"^1.2.1","eslint":"^3.18.0","eslint-config-egg":"^3.2.0","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"author":{"name":"dead_horse"},"gitHead":"cbc9ee6d19414c118398645c329b24c18476c146","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@1.1.0","_shasum":"5dffe3e47896129aa3cfede65147621cd99675ea","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"5dffe3e47896129aa3cfede65147621cd99675ea","size":2727,"noattachment":false,"key":"/egg-cors/-/egg-cors-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-1.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-cors-1.1.0.tgz_1490342504290_0.400154554983601"},"directories":{},"publish_time":1490342504532,"_cnpm_publish_time":1490342504532,"_hasShrinkwrap":false},"1.0.0":{"name":"egg-cors","version":"1.0.0","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"files":["app","config","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","plugin"],"dependencies":{"kcors":"^1.3.1"},"devDependencies":{"autod":"^2.7.1","egg":"*","egg-bin":"^1.7.0","egg-ci":"^1.0.3","egg-mock":"^1.1.0","egg-security":"^1.2.1","eslint":"^3.9.1","eslint-config-egg":"^3.1.0","intelli-espower-loader":"^1.0.1","power-assert":"^1.4.1","supertest":"^2.0.1"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test -r intelli-espower-loader","cov":"egg-bin cov -r intelli-espower-loader","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6, 7"},"author":{"name":"dead_horse"},"gitHead":"e5a436f8fcfd2c078e52a2012a7cec84315dd881","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@1.0.0","_shasum":"50cc79af232560d7c3a06efce79664085d520a2d","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.0","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"50cc79af232560d7c3a06efce79664085d520a2d","size":2779,"noattachment":false,"key":"/egg-cors/-/egg-cors-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-1.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/egg-cors-1.0.0.tgz_1478241768993_0.5855325895827264"},"directories":{},"publish_time":1478241769543,"_cnpm_publish_time":1478241769543,"_hasShrinkwrap":false},"0.0.2":{"name":"egg-cors","version":"0.0.2","description":"cors plugin for egg","eggPlugin":{"name":"cors"},"files":["app","config","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"keywords":["egg","plugin"],"dependencies":{"kcors":"^1.2.1"},"devDependencies":{"autod":"^2.6.1","egg-bin":"^1.0.2","egg-ci":"^1.0.2","eslint":"^3.0.1","eslint-config-egg":"^3.1.0","should":"^9.0.2","supertest":"^1.2.0"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js . --fix","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"author":{"name":"dead_horse"},"gitHead":"38f37136de3c6a6876c817fbe252d21d44cb2f29","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"homepage":"https://github.com/eggjs/egg-cors#readme","_id":"egg-cors@0.0.2","_shasum":"7b446547667a244045a9f746eefb9834a10a0bfa","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"dist":{"shasum":"7b446547667a244045a9f746eefb9834a10a0bfa","size":2185,"noattachment":false,"key":"/egg-cors/-/egg-cors-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-0.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-cors-0.0.2.tgz_1468570151119_0.6061916986946017"},"directories":{},"publish_time":1468570153744,"_cnpm_publish_time":1468570153744,"_hasShrinkwrap":false},"0.0.1":{"name":"egg-cors","version":"0.0.1","description":"egg plugin <egg-cors>","keywords":["egg","eggjs","egg-plugin"],"homepage":"https://github.com/eggjs/egg-cors","license":"MIT","author":{"name":"eggjs"},"contributors":[{"name":"TZ","email":"atian25@qq.com"},{"name":"popomore","email":"sakura9515@gmail.com"},{"name":"fengmk2","email":"m@fengmk2.com"},{"name":"dead-horse","email":"heyiyu.deadhorse@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-cors.git"},"bugs":{"url":"https://github.com/eggjs/egg-cors/issues"},"_id":"egg-cors@0.0.1","scripts":{},"_shasum":"87f67a16326100bdecb4315cdec9520267536e56","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"87f67a16326100bdecb4315cdec9520267536e56","size":422,"noattachment":false,"key":"/egg-cors/-/egg-cors-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-cors/download/egg-cors-0.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-cors-0.0.1.tgz_1464253612566_0.2380672183353454"},"directories":{},"publish_time":1464253613030,"_cnpm_publish_time":1464253613030,"_hasShrinkwrap":false}},"readme":"# egg-cors\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-cors.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-cors\n[travis-image]: https://img.shields.io/travis/eggjs/egg-cors.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-cors\n[codecov-image]: https://codecov.io/github/eggjs/egg-cors/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/eggjs/egg-cors?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-cors.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-cors\n[snyk-image]: https://snyk.io/test/npm/egg-cors/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-cors\n[download-image]: https://img.shields.io/npm/dm/egg-cors.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-cors\n\n[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) plugin for egg, based on [@koa/cors](https://github.com/koajs/cors).\n\n## Install\n\n```bash\n$ npm i egg-cors --save\n```\n\n## Usage\n\n```js\n// {app_root}/config/plugin.js\nexports.cors = {\n  enable: true,\n  package: 'egg-cors',\n};\n```\n\n`egg-cors` works internally with [egg-security](https://github.com/eggjs/egg-security). By defining the property of `domainWhiteList` on object `security`, you have successfully informed the framework to whitelist the passed domains.\n\nWhen you make a request from client side, **egg** should return an `Access-Control-Allow-Origin` response header with the domain that you passed in along with the payload and status code *200*.\n\n```js\nexports.security = {\n  domainWhiteList: [ 'http://localhost:4200' ],\n};\n```\n\n## Configuration\n\nSupport all configurations in [@koa/cors](https://github.com/koajs/cors).\n\n```js\n// {app_root}/config/config.default.js\nexports.cors = {\n  // {string|Function} origin: '*',\n  // {string|Array} allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH'\n};\n```\n\nIf the `origin` is set, the plugin will follow it to set the `Access-Control-Allow-Origin` and ignore the `security.domainWhiteList`. Otherwise, the `security.domainWhiteList` which is default will take effect as described above.\n\n## Security\n\nOnly in safe domain list support CORS when security plugin enabled.\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/eggjs/egg-cors#readme","bugs":{"url":"https://github.com/eggjs/egg-cors/issues"}}