{"_id":"@koa/cors","_rev":"4083465","name":"@koa/cors","description":"Cross-Origin Resource Sharing(CORS) for koa","dist-tags":{"latest":"5.0.0","latest-3":"3.4.3"},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"time":{"modified":"2025-12-01T22:08:44.000Z","created":"2017-09-30T19:49:26.640Z","5.0.0":"2023-12-11T01:53:57.232Z","4.0.0":"2022-10-08T13:43:52.102Z","3.4.3":"2022-10-08T13:31:23.676Z","3.4.2":"2022-10-05T16:11:28.818Z","3.4.1":"2022-08-19T15:55:15.810Z","3.4.0":"2022-08-19T01:11:09.133Z","3.3.0":"2022-03-29T10:22:24.578Z","3.2.0":"2022-03-12T15:56:40.687Z","3.1.0":"2020-05-17T08:42:44.001Z","3.0.0":"2019-03-11T03:31:17.482Z","2.2.3":"2018-12-19T02:37:30.549Z","2.2.2":"2018-07-11T12:49:35.683Z","2.2.1":"2017-09-30T19:49:26.640Z"},"users":{"modood":true,"cisco_lai":true},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://github.com/fengmk2"},"repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"versions":{"5.0.0":{"name":"@koa/cors","version":"5.0.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"contributor":"git-contributor","test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"egg-ci":"^2.1.0","eslint":"^8.25.0","eslint-config-egg":"^12.0.0","git-contributor":"^1.0.10","istanbul":"*","koa":"^2.5.1","mocha":"^3.5.3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 14.0.0"},"ci":{"version":"14, 16, 18, 20","os":"linux"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://github.com/fengmk2"},"license":"MIT","gitHead":"c33bd6913fe93e2a2b6902985e257a0e472199c4","_id":"@koa/cors@5.0.0","_nodeVersion":"18.19.0","_npmVersion":"9.3.1","dist":{"shasum":"0029b5f057fa0d0ae0e37dd2c89ece315a0daffd","size":4030,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-5.0.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_5.0.0_1702259637087_0.9674787561541953"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-11T01:53:57.232Z","publish_time":1702259637232,"_source_registry_name":"default","_cnpm_publish_time":1702259637232},"4.0.0":{"name":"@koa/cors","version":"4.0.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"contributor":"git-contributor","test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"egg-ci":"^2.1.0","eslint":"^8.25.0","eslint-config-egg":"^12.0.0","git-contributor":"^1.0.10","istanbul":"*","koa":"^2.5.1","mocha":"^3.5.3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 14.0.0"},"ci":{"version":"14, 16, 18","os":"linux"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://github.com/fengmk2"},"license":"MIT","gitHead":"0f3f948b9b8f00163a47de1b82e413bfef9b4a96","_id":"@koa/cors@4.0.0","_nodeVersion":"18.10.0","_npmVersion":"6.14.17","dist":{"shasum":"b2d300d7368d2e0ad6faa1d918eff6d0cde0859a","size":5907,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-4.0.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_4.0.0_1665236631890_0.7410411852962713"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-08T13:44:02.630Z","publish_time":1665236632102,"_cnpm_publish_time":1665236632102},"3.4.3":{"name":"@koa/cors","version":"3.4.3","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"contributor":"git-contributor","test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"egg-ci":"^1.19.1","eslint":"^5.15.1","eslint-config-egg":"^7.1.0","git-contributor":"^1.0.10","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10, 12, 14, 16, 18","type":"github","os":{"github":"linux"}},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://github.com/fengmk2"},"license":"MIT","gitHead":"b49b0859ae9d1db140e8204ef109bce020e99160","_id":"@koa/cors@3.4.3","_nodeVersion":"18.10.0","_npmVersion":"6.14.17","dist":{"shasum":"d669ee6e8d6e4f0ec4a7a7b0a17e7a3ed3752ebb","size":5812,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-3.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-3.4.3.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_3.4.3_1665235883543_0.6859487863027189"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-08T13:31:32.099Z","publish_time":1665235883676,"_cnpm_publish_time":1665235883676},"3.4.2":{"name":"@koa/cors","version":"3.4.2","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"contributor":"git-contributor","test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"egg-ci":"^1.19.1","eslint":"^5.15.1","eslint-config-egg":"^7.1.0","git-contributor":"^1.0.10","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10, 12, 14, 16, 18","type":"github","os":{"github":"linux"}},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://github.com/fengmk2"},"license":"MIT","gitHead":"d5456f7f2636c967e9dacdb33862f4c461934f32","_id":"@koa/cors@3.4.2","_nodeVersion":"18.10.0","_npmVersion":"6.14.17","dist":{"shasum":"70c13e5843d1762ce78fd8767162cd916132c946","size":5751,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-3.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-3.4.2.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_3.4.2_1664986288578_0.3346798829501807"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-05T16:11:36.420Z","publish_time":1664986288818,"_cnpm_publish_time":1664986288818},"3.4.1":{"name":"@koa/cors","version":"3.4.1","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"contributor":"git-contributor","test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"egg-ci":"^1.19.1","eslint":"^5.15.1","eslint-config-egg":"^7.1.0","git-contributor":"^1.0.10","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10, 12, 14, 16, 18","type":"github","os":{"github":"linux"}},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://github.com/fengmk2"},"license":"MIT","gitHead":"ea0ca7b016a322eb91fc36426a1c4f11752c6242","_id":"@koa/cors@3.4.1","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"shasum":"ddd5c6ff07a1e60831e1281411a3b9fdb95a5b26","size":3866,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-3.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-3.4.1.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_3.4.1_1660924515653_0.5540358076999861"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-19T15:56:15.183Z","publish_time":1660924515810,"_cnpm_publish_time":1660924515810},"3.4.0":{"name":"@koa/cors","version":"3.4.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"contributor":"git-contributor","test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"egg-ci":"^1.19.1","eslint":"^5.15.1","eslint-config-egg":"^7.1.0","git-contributor":"^1.0.10","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10, 12, 14, 16, 18","type":"github","os":{"github":"linux"}},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://github.com/fengmk2"},"license":"MIT","gitHead":"241a542aeefbcd712215189a13dda5e4130b7de3","_id":"@koa/cors@3.4.0","_nodeVersion":"18.7.0","_npmVersion":"6.14.12","dist":{"shasum":"b585f899b9ba2cfceaff6ce6ed414ce8a11be04d","size":5548,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-3.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-3.4.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_3.4.0_1660871468974_0.7386237758362759"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-19T01:11:18.254Z","publish_time":1660871469133,"_cnpm_publish_time":1660871469133},"3.3.0":{"name":"@koa/cors","version":"3.3.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"contributor":"git-contributor","test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"egg-ci":"^1.19.0","eslint":"^5.15.1","eslint-config-egg":"^7.1.0","git-contributor":"^1.0.10","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10, 12, 14, 16","type":"github","os":{"github":"linux"}},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://github.com/fengmk2"},"license":"MIT","gitHead":"6a45f3813910695db860ec25e35a23f2505a7ea5","_id":"@koa/cors@3.3.0","_nodeVersion":"16.14.2","_npmVersion":"6.14.12","dist":{"shasum":"b4c1c7ee303b7c968c8727f2a638a74675b50bb2","size":5258,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-3.3.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_3.3.0_1648549344418_0.8707466692417278"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-29T10:22:31.700Z","publish_time":1648549344578,"_cnpm_publish_time":1648549344578},"3.2.0":{"name":"@koa/cors","version":"3.2.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"contributor":"git-contributor","test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"egg-ci":"^1.19.0","eslint":"^5.15.1","eslint-config-egg":"^7.1.0","git-contributor":"^1.0.10","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10, 12, 14, 16","type":"github","os":{"github":"linux"}},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://github.com/fengmk2"},"license":"MIT","gitHead":"549776c9db24d791be158b8f52392c871477e95d","_id":"@koa/cors@3.2.0","_nodeVersion":"16.14.0","_npmVersion":"6.14.12","dist":{"shasum":"7fb65fbeb7dd841c3edf645efbfa2524dc72916a","size":5010,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-3.2.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_3.2.0_1647100600556_0.9197193228340135"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-12T15:56:44.427Z","publish_time":1647100600687,"_cnpm_publish_time":1647100600687},"3.1.0":{"name":"@koa/cors","version":"3.1.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '^'"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"autod":"*","eslint":"^5.15.1","eslint-config-egg":"^7.1.0","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 8.0.0"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.com"},"license":"MIT","gitHead":"f416c97e61ba6ff42541082e41a0e72317b39eeb","_id":"@koa/cors@3.1.0","_nodeVersion":"10.16.0","_npmVersion":"6.12.0","dist":{"shasum":"618bb073438cfdbd3ebd0e648a76e33b84f3a3b2","size":4244,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-3.1.0.tgz"},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_3.1.0_1589704963491_0.38644148498532815"},"_hasShrinkwrap":false,"publish_time":1589704964001,"_cnpm_publish_time":1589704964001},"3.0.0":{"name":"@koa/cors","version":"3.0.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '^'"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"autod":"*","eslint":"^5.15.1","eslint-config-egg":"^7.1.0","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 8.0.0"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.com"},"license":"MIT","gitHead":"71c4d00b170f52fd1324e9fd028816408867f8a6","_id":"@koa/cors@3.0.0","_npmVersion":"5.8.0","_nodeVersion":"10.15.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"df021b4df2dadf1e2b04d7c8ddf93ba2d42519cb","size":3952,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-3.0.0.tgz"},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_3.0.0_1552275077346_0.20336937705405833"},"_hasShrinkwrap":false,"publish_time":1552275077482,"_cnpm_publish_time":1552275077482},"2.2.3":{"name":"@koa/cors","version":"2.2.3","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","scripts":{"test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '^'"},"dependencies":{"vary":"^1.1.2"},"devDependencies":{"autod":"*","eslint":"^2.3.0","eslint-config-egg":"^2.0.0","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 6.0.0"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.com"},"license":"MIT","gitHead":"1fb61a0243d2c597462c0e8622fb75d894c2f6f5","_id":"@koa/cors@2.2.3","_npmVersion":"5.8.0","_nodeVersion":"8.11.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"c32a9907acbee1e72fedfb0b9ac840d2e6f9be57","size":3849,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-2.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-2.2.3.tgz"},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_2.2.3_1545187050441_0.5085571260610113"},"_hasShrinkwrap":false,"publish_time":1545187050549,"_cnpm_publish_time":1545187050549},"2.2.2":{"name":"@koa/cors","version":"2.2.2","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '^'"},"dependencies":{},"devDependencies":{"autod":"*","eslint":"^2.3.0","eslint-config-egg":"^2.0.0","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 6.0.0"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.com"},"license":"MIT","gitHead":"b5a937fc24666761c61b1ac633f49f54612d1315","_id":"@koa/cors@2.2.2","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"9084ab7f58107734e6b19d602d99538eda73f2d0","size":3674,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-2.2.2.tgz"},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors_2.2.2_1531313375625_0.6766918754651792"},"_hasShrinkwrap":false,"publish_time":1531313375683,"_cnpm_publish_time":1531313375683},"2.2.1":{"name":"@koa/cors","version":"2.2.1","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '~'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","koa":"next","mocha":"*","supertest":"1","eslint-config-egg":"^2.0.0","eslint":"^2.3.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 4.3.1"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"Owen Smith","email":"owen@omsmith.ca"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com"},{"name":"Yiyu He","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"lishengzxc","email":"eric@lishengcn.cn","url":"https://github.com/lishengzxc"}],"gitHead":"c9825308ce1c76810468bdf5a404b838206fba22","_id":"@koa/cors@2.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"dist":{"shasum":"c06a1c34d787e3cee79c0d4c20e8952d1b6d75c5","size":3319,"noattachment":false,"key":"/@koa/cors/-/@koa/cors-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@koa/cors/download/@koa/cors-2.2.1.tgz"},"maintainers":[{"name":"3imed-jaberi","email":""},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ljharb","email":""},{"name":"niftylettuce","email":""},{"name":"titanism","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cors-2.2.1.tgz_1506800966593_0.3299185351934284"},"directories":{},"publish_time":1506800966640,"_hasShrinkwrap":false,"_cnpm_publish_time":1506800966640}},"readme":"# @koa/cors\n\n[![NPM version][npm-image]][npm-url]\n[![Node.js CI](https://github.com/koajs/cors/actions/workflows/nodejs.yml/badge.svg)](https://github.com/koajs/cors/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/@koa/cors.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@koa/cors\n[codecov-image]: https://codecov.io/github/koajs/cors/coverage.svg?branch=v2.x\n[codecov-url]: https://codecov.io/github/koajs/cors?branch=v2.x\n[download-image]: https://img.shields.io/npm/dm/@koa/cors.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@koa/cors\n\n[Cross-Origin Resource Sharing(CORS)](https://developer.mozilla.org/en/docs/Web/HTTP/Access_control_CORS) for koa\n\n## Installation\n\n```bash\n$ npm install @koa/cors --save\n```\n\n## Quick start\n\nEnable cors with default options:\n\n- origin: request Origin header\n- allowMethods: GET,HEAD,PUT,POST,DELETE,PATCH\n\n```js\nconst Koa = require('koa');\nconst cors = require('@koa/cors');\n\nconst app = new Koa();\napp.use(cors());\n```\n\n## cors(options)\n\n```js\n/**\n * CORS middleware\n *\n * @param {Object} [options]\n *  - {String|Function(ctx)} origin `Access-Control-Allow-Origin`, default is '*'\n *    If `credentials` set and return `true, the `origin` default value will set to the request `Origin` header\n *  - {String|Array} allowMethods `Access-Control-Allow-Methods`, default is 'GET,HEAD,PUT,POST,DELETE,PATCH'\n *  - {String|Array} exposeHeaders `Access-Control-Expose-Headers`\n *  - {String|Array} allowHeaders `Access-Control-Allow-Headers`\n *  - {String|Number} maxAge `Access-Control-Max-Age` in seconds\n *  - {Boolean|Function(ctx)} credentials `Access-Control-Allow-Credentials`, default is false.\n *  - {Boolean} keepHeadersOnError Add set headers to `err.header` if an error is thrown\n *  - {Boolean} secureContext `Cross-Origin-Opener-Policy` & `Cross-Origin-Embedder-Policy` headers.', default is false\n *  - {Boolean} privateNetworkAccess handle `Access-Control-Request-Private-Network` request by return `Access-Control-Allow-Private-Network`, default to false\n * @return {Function} cors middleware\n * @api public\n */\n```\n\n## Breaking change between 5.0 and 4.0\n\nThe default `origin` is set to `*`, if you want to keep the 4.0 behavior, you can set the `origin` handler like this:\n\n```js\napp.use(cors({\n  origin(ctx) {\n    return ctx.get('Origin') || '*';\n  },\n}));\n```\n\n## License\n\n[MIT](./LICENSE)\n\n<!-- GITCONTRIBUTOR_START -->\n\n## Contributors\n\n|[<img src=\"https://avatars.githubusercontent.com/u/156269?v=4\" width=\"100px;\"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/985607?v=4\" width=\"100px;\"/><br/><sub><b>dead-horse</b></sub>](https://github.com/dead-horse)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/1127384?v=4\" width=\"100px;\"/><br/><sub><b>omsmith</b></sub>](https://github.com/omsmith)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/643505?v=4\" width=\"100px;\"/><br/><sub><b>jonathanong</b></sub>](https://github.com/jonathanong)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/5622516?v=4\" width=\"100px;\"/><br/><sub><b>AlphaWong</b></sub>](https://github.com/AlphaWong)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/55783048?v=4\" width=\"100px;\"/><br/><sub><b>cma-skedulo</b></sub>](https://github.com/cma-skedulo)<br/>|\n| :---: | :---: | :---: | :---: | :---: | :---: |\n|[<img src=\"https://avatars.githubusercontent.com/u/6992588?v=4\" width=\"100px;\"/><br/><sub><b>CleberRossi</b></sub>](https://github.com/CleberRossi)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/178720?v=4\" width=\"100px;\"/><br/><sub><b>erikfried</b></sub>](https://github.com/erikfried)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/1217939?v=4\" width=\"100px;\"/><br/><sub><b>j-waaang</b></sub>](https://github.com/j-waaang)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/4184677?v=4\" width=\"100px;\"/><br/><sub><b>ltomes</b></sub>](https://github.com/ltomes)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/372420?v=4\" width=\"100px;\"/><br/><sub><b>lfreneda</b></sub>](https://github.com/lfreneda)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/170299?v=4\" width=\"100px;\"/><br/><sub><b>matthewmueller</b></sub>](https://github.com/matthewmueller)<br/>|\n[<img src=\"https://avatars.githubusercontent.com/u/6006498?v=4\" width=\"100px;\"/><br/><sub><b>PlasmaPower</b></sub>](https://github.com/PlasmaPower)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/14932834?v=4\" width=\"100px;\"/><br/><sub><b>swain</b></sub>](https://github.com/swain)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/49938086?v=4\" width=\"100px;\"/><br/><sub><b>TyrealHu</b></sub>](https://github.com/TyrealHu)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/8369011?v=4\" width=\"100px;\"/><br/><sub><b>xg-wang</b></sub>](https://github.com/xg-wang)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/12003270?v=4\" width=\"100px;\"/><br/><sub><b>lishengzxc</b></sub>](https://github.com/lishengzxc)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/514097?v=4\" width=\"100px;\"/><br/><sub><b>mcohen75</b></sub>](https://github.com/mcohen75)<br/>\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Oct 08 2022 21:35:10 GMT+0800`.\n\n<!-- GITCONTRIBUTOR_END -->\n","_attachments":{},"homepage":"https://github.com/koajs/cors","bugs":{"url":"https://github.com/koajs/cors/issues"},"license":"MIT"}