{"_id":"fastify-cors","_rev":"1926369","name":"fastify-cors","description":"Fastify CORS","dist-tags":{"latest":"6.0.2","maintenance":"1.0.1","next":"4.0.0"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"time":{"modified":"2021-12-09T13:48:56.000Z","created":"2018-08-11T14:13:36.508Z","6.0.2":"2021-07-14T07:51:38.432Z","6.0.1":"2021-05-07T10:04:47.327Z","6.0.0":"2021-04-29T08:55:34.760Z","5.2.0":"2021-01-25T07:41:17.855Z","5.1.0":"2020-12-09T13:18:10.431Z","5.0.0":"2020-11-22T11:15:18.432Z","4.1.0":"2020-07-19T08:16:25.953Z","4.0.0":"2020-05-05T11:03:21.738Z","3.0.3":"2020-03-28T14:49:53.342Z","3.0.2":"2020-02-18T20:43:07.360Z","3.0.1":"2020-01-05T06:57:54.350Z","3.0.0":"2019-11-22T21:55:44.118Z","2.2.0":"2019-11-10T22:24:23.515Z","2.1.3":"2019-05-01T18:31:50.583Z","1.0.1":"2019-02-26T17:19:45.249Z","2.1.2":"2019-02-26T16:30:10.979Z","2.1.1":"2019-02-14T16:42:38.009Z","2.1.0":"2019-02-08T01:16:59.234Z","2.0.1":"2019-01-14T06:59:08.406Z","2.0.0":"2018-12-21T01:29:48.989Z","1.0.0":"2018-12-21T01:21:12.092Z","0.2.0":"2018-10-23T19:26:55.088Z","0.1.0":"2018-08-15T12:59:41.675Z","0.0.1":"2018-08-11T14:13:36.508Z"},"users":{},"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"versions":{"6.0.2":{"name":"fastify-cors","version":"6.0.2","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"coverage":"tap --cov --coverage-report=html test","lint":"npm run lint:standard && npm run lint:typescript","lint:fix":"standard --fix","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts","test":"npm run lint && npm run unit && npm run typescript","test:ci":"npm run lint && tap test/*.test.js --coverage-report=lcovonly && npm run typescript","typescript":"tsd","unit":"tap test/*.test.js"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^16.0.0","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.1.1","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","tap":"^15.0.2","tsd":"^0.17.0","typescript":"^4.0.2"},"dependencies":{"fastify-plugin":"^3.0.0","vary":"^1.1.2"},"tsd":{"directory":"test"},"gitHead":"da51cc34b490885c0de8c28a60aaaa56cc384b11","_id":"fastify-cors@6.0.2","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"4fd5102549659e9b34d252fd7ee607b63d021390","size":10515,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-6.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-6.0.2.tgz"},"directories":{},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_6.0.2_1626249098308_0.5795890380164557"},"_hasShrinkwrap":false,"publish_time":1626249098432,"_cnpm_publish_time":1626249098432},"6.0.1":{"name":"fastify-cors","version":"6.0.1","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"coverage":"tap --cov --coverage-report=html test","lint":"npm run lint:standard && npm run lint:typescript","lint:fix":"standard --fix","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts","test":"npm run lint && npm run unit && npm run typescript","test:ci":"npm run lint && tap test/*.test.js --coverage-report=lcovonly && npm run typescript","typescript":"tsd","unit":"tap test/*.test.js"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^15.0.0","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.1.1","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","tap":"^15.0.2","tsd":"^0.14.0","typescript":"^4.0.2"},"dependencies":{"fastify-plugin":"^3.0.0","vary":"^1.1.2"},"tsd":{"directory":"test"},"gitHead":"42d3bf4c73dcd780607a48023be4e03f0a38f35e","_id":"fastify-cors@6.0.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"300e0f1cbeedda19d9de284e9cf05c65842c182b","size":10488,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-6.0.1.tgz"},"directories":{},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_6.0.1_1620381887057_0.28469285401682387"},"_hasShrinkwrap":false,"publish_time":1620381887327,"_cnpm_publish_time":1620381887327},"6.0.0":{"name":"fastify-cors","version":"6.0.0","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"coverage":"tap --cov --coverage-report=html test","lint":"npm run lint:standard && npm run lint:typescript","lint:fix":"standard --fix","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts","test":"npm run lint && npm run unit && npm run typescript","test:ci":"npm run lint && tap test/*.test.js --coverage-report=lcovonly && npm run typescript","typescript":"tsd","unit":"tap test/*.test.js"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^15.0.0","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.1.1","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","tap":"^15.0.2","tsd":"^0.14.0","typescript":"^4.0.2"},"dependencies":{"fastify-plugin":"^3.0.0","vary":"^1.1.2"},"tsd":{"directory":"test"},"gitHead":"fe1b50b556332352197b3cc33f526025d058c72d","_id":"fastify-cors@6.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.13","dist":{"shasum":"59764802f7260898f0ae4f9f1aa626d5e1c16a8b","size":10440,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-6.0.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_6.0.0_1619686534605_0.9551849983611054"},"_hasShrinkwrap":false,"publish_time":1619686534760,"_cnpm_publish_time":1619686534760},"5.2.0":{"name":"fastify-cors","version":"5.2.0","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts","unit":"tap --100 test/*.test.js","typescript":"tsd","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^14.14.9","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.1.1","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","tap":"^14.11.0","tsd":"^0.14.0","typescript":"^4.0.2"},"dependencies":{"fastify-plugin":"^3.0.0","vary":"^1.1.2"},"tsd":{"directory":"test"},"gitHead":"3f38eb73a0ed8e6362509a798cc5f45beb78b23a","_id":"fastify-cors@5.2.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"shasum":"a92af64d9b7df1cd736c90ecd894a7b23c0cd75a","size":10149,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-5.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-5.2.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_5.2.0_1611560477623_0.45229129434228943"},"_hasShrinkwrap":false,"publish_time":1611560477855,"_cnpm_publish_time":1611560477855},"5.1.0":{"name":"fastify-cors","version":"5.1.0","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts","unit":"tap --100 test/*.test.js","typescript":"tsd","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^14.14.9","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.1.1","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","tap":"^14.11.0","tsd":"^0.14.0","typescript":"^4.0.2"},"dependencies":{"fastify-plugin":"^3.0.0","vary":"^1.1.2"},"tsd":{"directory":"test"},"gitHead":"37e278fd3739a17a51813cf47338fc0f9ae9ea30","_id":"fastify-cors@5.1.0","_nodeVersion":"12.19.1","_npmVersion":"6.14.8","dist":{"shasum":"f34b11ed0b84fdc212edc2ad38c92ff85f163b8e","size":9348,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-5.1.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_5.1.0_1607519890294_0.382196131782226"},"_hasShrinkwrap":false,"publish_time":1607519890431,"_cnpm_publish_time":1607519890431},"5.0.0":{"name":"fastify-cors","version":"5.0.0","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts","unit":"tap --100 test/*.test.js","typescript":"tsd","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^14.14.9","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.1.1","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","tap":"^14.11.0","tsd":"^0.13.1","typescript":"^4.0.2"},"dependencies":{"fastify-plugin":"^3.0.0","vary":"^1.1.2"},"tsd":{"directory":"test"},"gitHead":"abafaa11762b4581687fc82606ca0afedbb6308b","_id":"fastify-cors@5.0.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"shasum":"83885f87fec644b5849f5cba9607aa5070803b20","size":9028,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-5.0.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_5.0.0_1606043718304_0.3281275260257899"},"_hasShrinkwrap":false,"publish_time":1606043718432,"_cnpm_publish_time":1606043718432},"4.1.0":{"name":"fastify-cors","version":"4.1.0","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsd","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^14.0.1","@typescript-eslint/eslint-plugin":"^3.0.1","@typescript-eslint/parser":"^3.0.1","cors":"^2.8.5","fastify":"^3.0.0","standard":"^14.0.2","tap":"^14.10.7","typescript":"^3.5.3","tsd":"^0.13.1"},"dependencies":{"fastify-plugin":"^2.0.0","vary":"^1.1.2"},"tsd":{"directory":"test"},"gitHead":"6a64e8d42765bf5ad6900589eedfee3abdcbd325","_id":"fastify-cors@4.1.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.6","dist":{"shasum":"ae6e2533f42b033a35da85ed3d585aafd56c2210","size":7189,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-4.1.0.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_4.1.0_1595146585794_0.231116241039661"},"_hasShrinkwrap":false,"publish_time":1595146585953,"_cnpm_publish_time":1595146585953},"4.0.0":{"name":"fastify-cors","version":"4.0.0","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsd","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^13.13.4","@typescript-eslint/eslint-plugin":"^2.10.0","@typescript-eslint/parser":"^2.0.0","cors":"^2.8.5","fastify":"^3.0.0-rc.1","standard":"^14.0.2","tap":"^14.10.7","typescript":"^3.5.3","tsd":"^0.11.0"},"dependencies":{"fastify-plugin":"^2.0.0","vary":"^1.1.2"},"tsd":{"directory":"test"},"readmeFilename":"README.md","gitHead":"3b8a4684da9ed1e545c4356deb77180c58d83459","_id":"fastify-cors@4.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"26ef5e1dc186743d091abb7557972080482ce4be","size":7148,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-4.0.0.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_4.0.0_1588676601624_0.28495538589615466"},"_hasShrinkwrap":false,"publish_time":1588676601738,"_cnpm_publish_time":1588676601738},"3.0.3":{"name":"fastify-cors","version":"3.0.3","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^12.12.7","@typescript-eslint/eslint-plugin":"^2.10.0","@typescript-eslint/parser":"^2.0.0","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","tap":"^12.6.5","typescript":"^3.5.3"},"dependencies":{"fastify-plugin":"^1.6.0","vary":"^1.1.2"},"greenkeeper":{"ignore":["tap"]},"gitHead":"6414f9cdd26ee0ea775d927fa9afdc7d6a1b0020","_id":"fastify-cors@3.0.3","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"c1b2227983d7b02feff73fd642d81041adfbe124","size":7103,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-3.0.3.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_3.0.3_1585406993231_0.23842414735823736"},"_hasShrinkwrap":false,"publish_time":1585406993342,"_cnpm_publish_time":1585406993342},"3.0.2":{"name":"fastify-cors","version":"3.0.2","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^12.12.7","@typescript-eslint/eslint-plugin":"^2.10.0","@typescript-eslint/parser":"^2.0.0","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","tap":"^12.6.5","typescript":"^3.5.3"},"dependencies":{"fastify-plugin":"^1.6.0","vary":"^1.1.2"},"greenkeeper":{"ignore":["tap"]},"gitHead":"e434dcf3f7396968596b523c26f48df9254198aa","_id":"fastify-cors@3.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"dist":{"shasum":"38f380512da513ab5ae4b071756a3dfc461cca4a","size":7008,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-3.0.2.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_3.0.2_1582058587216_0.8825534516929325"},"_hasShrinkwrap":false,"publish_time":1582058587360,"_cnpm_publish_time":1582058587360},"3.0.1":{"name":"fastify-cors","version":"3.0.1","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^12.12.7","@typescript-eslint/eslint-plugin":"^2.10.0","@typescript-eslint/parser":"^2.0.0","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","tap":"^12.6.5","typescript":"^3.5.3"},"dependencies":{"fastify-plugin":"^1.6.0","vary":"^1.1.2"},"greenkeeper":{"ignore":["tap"]},"gitHead":"015954b752dbfb538a5c8e23c5592de03c920d16","_id":"fastify-cors@3.0.1","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"shasum":"6773aa3756beb886637736ee97a3d6063d9d0f10","size":6911,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-3.0.1.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmUser":{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_3.0.1_1578207474246_0.2433641159418931"},"_hasShrinkwrap":false,"publish_time":1578207474350,"_cnpm_publish_time":1578207474350},"3.0.0":{"name":"fastify-cors","version":"3.0.0","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^12.12.7","@typescript-eslint/eslint-plugin":"^1.12.0","@typescript-eslint/parser":"^2.0.0","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","tap":"^12.6.5","typescript":"^3.5.3"},"dependencies":{"fastify-plugin":"^1.6.0","vary":"^1.1.2"},"greenkeeper":{"ignore":["tap"]},"gitHead":"11fa5811d5a804e2d146f5225065a165a9430686","_id":"fastify-cors@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"dist":{"shasum":"63b914d8256be6c6ae7d4cb90e33eaa56a1261c7","size":6874,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-3.0.0.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_3.0.0_1574459743869_0.4722572508596341"},"_hasShrinkwrap":false,"publish_time":1574459744118,"_cnpm_publish_time":1574459744118},"2.2.0":{"name":"fastify-cors","version":"2.2.0","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^12.12.7","@typescript-eslint/eslint-plugin":"^1.12.0","@typescript-eslint/parser":"^2.0.0","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","tap":"^12.6.5","typescript":"^3.5.3"},"dependencies":{"fastify-plugin":"^1.6.0","vary":"^1.1.2"},"greenkeeper":{"ignore":["tap"]},"gitHead":"0d1ec3346af20e09c12a8b900f78ce867d033520","_id":"fastify-cors@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"dist":{"shasum":"700fca91b735999193699980cb005a25f85d91ce","size":6797,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-2.2.0.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_2.2.0_1573424663392_0.1857629996994461"},"_hasShrinkwrap":false,"publish_time":1573424663515,"_cnpm_publish_time":1573424663515},"2.1.3":{"name":"fastify-cors","version":"2.1.3","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:typescript":"standard --parser typescript-eslint-parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^11.9.0","cors":"^2.8.5","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","standard":"^12.0.1","tap":"^12.5.1","typescript":"^3.3.1","typescript-eslint-parser":"^22.0.0"},"dependencies":{"fastify-plugin":"^1.5.0","vary":"^1.1.2"},"gitHead":"2ec115d58604dc3187abed1bd4d5ccd865107068","_id":"fastify-cors@2.1.3","_nodeVersion":"11.11.0","_npmVersion":"6.7.0","dist":{"shasum":"5ae8fcc620a47270cd68d46acc3b8dd7919b538b","size":6614,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-2.1.3.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmUser":{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_2.1.3_1556735510399_0.2094079994857645"},"_hasShrinkwrap":false,"publish_time":1556735510583,"_cnpm_publish_time":1556735510583},"1.0.1":{"name":"fastify-cors","version":"1.0.1","description":"Fastify CORS","main":"index.js","scripts":{"test":"standard && tap test.js"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"cors":"^2.8.4","fastify":"^1.9.0","standard":"^12.0.1","tap":"^12.0.1"},"dependencies":{"fastify-plugin":"^1.2.0","vary":"^1.1.2"},"readmeFilename":"README.md","gitHead":"3715e14ea0ccc5174ead19ac6af7c9a5947acd63","_id":"fastify-cors@1.0.1","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"ed7b00901d6deb58d969c96f995c1501ce3edd55","size":5405,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-1.0.1.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_1.0.1_1551201585143_0.6378706100094327"},"_hasShrinkwrap":false,"publish_time":1551201585249,"_cnpm_publish_time":1551201585249},"2.1.2":{"name":"fastify-cors","version":"2.1.2","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:typescript":"standard --parser typescript-eslint-parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^11.9.0","cors":"^2.8.5","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","standard":"^12.0.1","tap":"^12.5.1","typescript":"^3.3.1","typescript-eslint-parser":"^22.0.0"},"dependencies":{"fastify-plugin":"^1.5.0","vary":"^1.1.2"},"gitHead":"3a7f44f2d4db17e2ca5dea7e49b666cea20e4284","_id":"fastify-cors@2.1.2","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"5cafc79b974a73f61136f1871bf59208af06b7b0","size":6551,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-2.1.2.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_2.1.2_1551198610812_0.04342730483577162"},"_hasShrinkwrap":false,"publish_time":1551198610979,"_cnpm_publish_time":1551198610979},"2.1.1":{"name":"fastify-cors","version":"2.1.1","description":"Fastify CORS","main":"index.js","types":"index.d.ts","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:typescript":"standard --parser typescript-eslint-parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^11.9.0","cors":"^2.8.5","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0-rc.4","standard":"^12.0.1","tap":"^12.5.1","typescript":"^3.3.1","typescript-eslint-parser":"^22.0.0"},"dependencies":{"fastify-plugin":"^1.5.0","vary":"^1.1.2"},"gitHead":"b71f278f0e36ffc831b2b428f1f043b88b4bd821","_id":"fastify-cors@2.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"dist":{"shasum":"614bb87ba9fc6684eca86340380b7ed9e198a032","size":6560,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-2.1.1.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_2.1.1_1550162557369_0.9831154596198253"},"_hasShrinkwrap":false,"publish_time":1550162558009,"_cnpm_publish_time":1550162558009},"2.1.0":{"name":"fastify-cors","version":"2.1.0","description":"Fastify CORS","main":"index.js","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard","lint:typescript":"standard --parser typescript-eslint-parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","coverage":"tap --cov --coverage-report=html test"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"@types/node":"^10.12.21","cors":"^2.8.5","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0-rc.4","standard":"^12.0.1","tap":"^12.5.1","typescript":"^3.3.1","typescript-eslint-parser":"^22.0.0"},"dependencies":{"fastify-plugin":"^1.5.0","vary":"^1.1.2"},"gitHead":"5980d11e44bf61948236528da1d0572186238290","_id":"fastify-cors@2.1.0","_nodeVersion":"10.14.2","_npmVersion":"6.7.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"7b225f7fbef1f77e59d5196cd4c4560580327ce7","size":6551,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-2.1.0.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_2.1.0_1549588618725_0.011709285074471332"},"_hasShrinkwrap":false,"publish_time":1549588619234,"_cnpm_publish_time":1549588619234},"2.0.1":{"name":"fastify-cors","version":"2.0.1","description":"Fastify CORS","main":"index.js","scripts":{"test":"standard && tap test.js"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"cors":"^2.8.4","fastify":"^2.0.0-rc.2","standard":"^12.0.1","tap":"^12.0.1"},"dependencies":{"fastify-plugin":"^1.2.0","vary":"^1.1.2"},"readmeFilename":"README.md","gitHead":"15346e80dc7ede4e6ec3247c88b33192fa05fc4f","_id":"fastify-cors@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"dist":{"shasum":"702562ec4ba4e69a2aac524f45b3a7bbabeb98ce","size":5465,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-2.0.1.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_2.0.1_1547449148324_0.6790807166532777"},"_hasShrinkwrap":false,"publish_time":1547449148406,"_cnpm_publish_time":1547449148406},"2.0.0":{"name":"fastify-cors","version":"2.0.0","description":"Fastify CORS","main":"index.js","scripts":{"test":"standard && tap test.js"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"cors":"^2.8.4","fastify":"^2.0.0-rc.2","standard":"^12.0.1","tap":"^12.0.1"},"dependencies":{"fastify-plugin":"^1.2.0","vary":"^1.1.2"},"gitHead":"a12d7c2537cc3bd07ffbad6165bd9ca9c2b5a295","readmeFilename":"README.md","_id":"fastify-cors@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"dist":{"shasum":"002fdff186f4f7562bb366da8b3c292957f34b2d","size":5524,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-2.0.0.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_2.0.0_1545355788841_0.2838983115487044"},"_hasShrinkwrap":false,"publish_time":1545355788989,"_cnpm_publish_time":1545355788989},"1.0.0":{"name":"fastify-cors","version":"1.0.0","description":"Fastify CORS","main":"index.js","scripts":{"test":"standard && tap test.js"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"cors":"^2.8.4","fastify":"^1.9.0","standard":"^12.0.1","tap":"^12.0.1"},"dependencies":{"fastify-plugin":"^1.2.0","vary":"^1.1.2"},"gitHead":"6e2e0820c9336d67afa8c5d9a389a680f2898cd9","_id":"fastify-cors@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"dist":{"shasum":"a2864274ee9d7699f47f9ad8a5b4a736effc7b16","size":5459,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-1.0.0.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_1.0.0_1545355271761_0.6634574649255183"},"_hasShrinkwrap":false,"publish_time":1545355272092,"_cnpm_publish_time":1545355272092},"0.2.0":{"name":"fastify-cors","version":"0.2.0","description":"Fastify CORS","main":"index.js","scripts":{"test":"standard && tap test.js"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"cors":"^2.8.4","fastify":"^1.9.0","standard":"^12.0.1","tap":"^12.0.1"},"dependencies":{"fastify-plugin":"^1.2.0","vary":"^1.1.2"},"gitHead":"c2a6c7f1b4d0543fd452609d22f931e6531b1cda","_id":"fastify-cors@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"dist":{"shasum":"8fce0a2a5ba05ac08c7d6f2ca4c501b0ae638e39","size":5310,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-0.2.0.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_0.2.0_1540322814966_0.18740618836580847"},"_hasShrinkwrap":false,"publish_time":1540322815088,"_cnpm_publish_time":1540322815088},"0.1.0":{"name":"fastify-cors","version":"0.1.0","description":"Fastify CORS","main":"index.js","scripts":{"test":"standard && tap test.js"},"keywords":["fastify","cors","headers","access","control"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/fastify-cors.git"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"homepage":"https://github.com/fastify/fastify-cors#readme","devDependencies":{"cors":"^2.8.4","fastify":"^1.9.0","standard":"^11.0.1","tap":"^12.0.1"},"dependencies":{"fastify-plugin":"^1.2.0","vary":"^1.1.2"},"gitHead":"8db32f273c5ddb72b6c7826837b0a474d9b25454","_id":"fastify-cors@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"delvedor","email":"tommydelved@gmail.com"},"dist":{"shasum":"58b04b056eb42a3d4ef7f916f376016ca9088c7f","size":5191,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-0.1.0.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_0.1.0_1534337981606_0.44203529781869166"},"_hasShrinkwrap":false,"publish_time":1534337981675,"_cnpm_publish_time":1534337981675},"0.0.1":{"name":"fastify-cors","version":"0.0.1","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","_id":"fastify-cors@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"delvedor","email":"tommydelved@gmail.com"},"dist":{"shasum":"0ba829b4871967c204c45be35215a71da787b207","size":295,"noattachment":false,"key":"/fastify-cors/-/fastify-cors-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastify-cors/download/fastify-cors-0.0.1.tgz"},"maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"delvedor","email":""},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-cors_0.0.1_1533996816392_0.1992605215052634"},"_hasShrinkwrap":false,"publish_time":1533996816508,"_cnpm_publish_time":1533996816508}},"readme":"# fastify-cors\n\n![CI](https://github.com/fastify/fastify-cors/workflows/CI/badge.svg)\n[![NPM version](https://img.shields.io/npm/v/fastify-cors.svg?style=flat)](https://www.npmjs.com/package/fastify-cors)\n[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-cors/badge.svg)](https://snyk.io/test/github/fastify/fastify-cors)\n[![Coverage Status](https://coveralls.io/repos/github/fastify/fastify-cors/badge.svg?branch=master)](https://coveralls.io/github/fastify/fastify-cors?branch=master)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)\n\n\n`fastify-cors` enables the use of [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) in a Fastify application.\n\nSupports Fastify versions `3.x`.\nPlease refer to [this branch](https://github.com/fastify/fastify-cors/tree/3.x) and related versions for Fastify `^2.x` compatibility.\nPlease refer to [this branch](https://github.com/fastify/fastify-cors/tree/1.x) and related versions for Fastify `^1.x` compatibility.\n\n## Install\n```\nnpm i fastify-cors\n```\n\n## Usage\nRequire `fastify-cors` and register it as any other plugin, it will add a `preHandler` hook and a [wildcard options route](https://github.com/fastify/fastify/issues/326#issuecomment-411360862).\n```js\nconst fastify = require('fastify')()\n\nfastify.register(require('fastify-cors'), { \n  // put your options here\n})\n\nfastify.get('/', (req, reply) => {\n  reply.send({ hello: 'world' })\n})\n\nfastify.listen(3000)\n```\nYou can use it as is without passing any option or you can configure it as explained below.\n### Options\n* `origin`: Configures the **Access-Control-Allow-Origin** CORS header. The value of origin could be of different types:\n  - `Boolean` - set `origin` to `true` to reflect the [request origin](http://tools.ietf.org/html/draft-abarth-origin-09), or set it to `false` to disable CORS.\n  - `String` - set `origin` to a specific origin. For example if you set it to `\"http://example.com\"` only requests from \"http://example.com\" will be allowed. The special `*` value (default) allows any origin.\n  - `RegExp` - set `origin` to a regular expression pattern that will be used to test the request origin. If it is a match, the request origin will be reflected. For example, the pattern `/example\\.com$/` will reflect any request that is coming from an origin ending with \"example.com\".\n  - `Array` - set `origin` to an array of valid origins. Each origin can be a `String` or a `RegExp`. For example `[\"http://example1.com\", /\\.example2\\.com$/]` will accept any request from \"http://example1.com\" or from a subdomain of \"example2.com\".\n  - `Function` - set `origin` to a function implementing some custom logic. The function takes the request origin as the first parameter and a callback as a second (which expects the signature `err [Error | null], origin`), where `origin` is a non-function value of the origin option. *Async-await* and promises are supported as well. The Fastify instance is bound to function call and you may access via `this`. For example: \n  ```js\n  origin: (origin, cb) => {\n    if(/localhost/.test(origin)){\n      //  Request from localhost will pass\n      cb(null, true)\n      return\n    }\n    // Generate an error on other origins, disabling access\n    cb(new Error(\"Not allowed\"))\n  }\n  ```\n* `methods`: Configures the **Access-Control-Allow-Methods** CORS header. Expects a comma-delimited string (ex: 'GET,PUT,POST') or an array (ex: `['GET', 'PUT', 'POST']`).\n* `allowedHeaders`: Configures the **Access-Control-Allow-Headers** CORS header. Expects a comma-delimited string (ex: `'Content-Type,Authorization'`) or an array (ex: `['Content-Type', 'Authorization']`). If not specified, defaults to reflecting the headers specified in the request's **Access-Control-Request-Headers** header.\n* `exposedHeaders`: Configures the **Access-Control-Expose-Headers** CORS header. Expects a comma-delimited string (ex: `'Content-Range,X-Content-Range'`) or an array (ex: `['Content-Range', 'X-Content-Range']`). If not specified, no custom headers are exposed.\n* `credentials`: Configures the **Access-Control-Allow-Credentials** CORS header. Set to `true` to pass the header, otherwise it is omitted.\n* `maxAge`: Configures the **Access-Control-Max-Age** CORS header. In seconds. Set to an integer to pass the header, otherwise it is omitted.\n* `preflightContinue`: Pass the CORS preflight response to the route handler (default: `false`).\n* `optionsSuccessStatus`: Provides a status code to use for successful `OPTIONS` requests, since some legacy browsers (IE11, various SmartTVs) choke on `204`.\n* `preflight`: if needed you can entirely disable preflight by passing `false` here (default: `true`).\n* `strictPreflight`: Enforces strict requirement of the CORS preflight request headers (**Access-Control-Request-Method** and **Origin**) as defined by the [W3C CORS specification](https://www.w3.org/TR/2020/SPSD-cors-20200602/#resource-preflight-requests) (the current [fetch living specification](https://fetch.spec.whatwg.org/) does not define server behavior for missing headers). Preflight requests without the required headers will result in 400 errors when set to `true` (default: `true`).\n* `hideOptionsRoute`: hide options route from the documentation built using [fastify-swagger](https://github.com/fastify/fastify-swagger) (default: `true`).\n\n### Configuring CORS Asynchronously\n\n```js\nconst fastify = require('fastify')()\n\nfastify.register(require('fastify-cors'), (instance) => (req, callback) => {\n  let corsOptions;\n  // do not include CORS headers for requests from localhost\n  if (/localhost/.test(origin)) {\n    corsOptions = { origin: false }\n  } else {\n    corsOptions = { origin: true }\n  }\n  callback(null, corsOptions) // callback expects two parameters: error and options\n})\n\nfastify.get('/', (req, reply) => {\n  reply.send({ hello: 'world' })\n})\n\nfastify.listen(3000)\n```\n\n## Acknowledgements\n\nThe code is a port for Fastify of [`expressjs/cors`](https://github.com/expressjs/cors).\n\n## License\n\nLicensed under [MIT](./LICENSE).<br/>\n[`expressjs/cors` license](https://github.com/expressjs/cors/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"license":"MIT"}