{"_id":"fastify-cors","_rev":"60-afb983e4c4451aba22005f5446973672","name":"fastify-cors","dist-tags":{"maintenance":"1.0.1","next":"4.0.0","latest":"6.1.0"},"versions":{"0.0.1":{"name":"fastify-cors","version":"0.0.1","keywords":[],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@0.0.1","maintainers":[{"name":"delvedor","email":"tommydelved@gmail.com"}],"dist":{"shasum":"0ba829b4871967c204c45be35215a71da787b207","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-0.0.1.tgz","fileCount":1,"integrity":"sha512-Xezc2w4z+kOLLDflXZDED1rvC5LIz2n9VaXZs9inakceyNhDuPeMZMrJLPfohkD48BFcoDqB/i4g0AhZrejlvA==","signatures":[{"sig":"MEYCIQDHhRoH6crO70nQ9Df+YseoKKGhcYB0fN+WHtvBYjhmeQIhAJ7AgkMh/5ULZnOhOMUFndralO7i2X5Jye+v4JK9zbi0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":276,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbu8RCRA9TVsSAnZWagAAwQoP/i6XehAyW0mG9j09kLzN\ntjYrWnWFZMSFyO7GnzVCsa6dCdePwjQF5dye5A0T1btS9a2f553JhkPM5b4z\nH306I/j/ftjR3R9cjW7dk9JKeAjsDt9COM9JaxmhNTmfUaP6tLLCnM1VNojY\nwCF6QxKW1DspU3DVDsSYkjfLJ0YO4dwNU/iiPgjgs+yigcprsy/54K5DvuYT\noMr7YRlh0zBekdf4tItueyQpqJGRj8eTK4XVOxGRqCG+kF2n2LGoIKWuny6A\n3HzS+5QgK7dDrB0qJKEprCY2Q1mKJ8QOIeNIi+pKcDQ8QRPIRNpspkeSyt0M\n/pUVFtwMSC8NTMk0+Orht1JvasLP+DSEkdOcuVX+yj68rFF4V1U/Kj0BiCvO\nXr8VncFuzxxfNxJX8z0J8Q6o1GwwFpE+BzzqUZQ+VUzQUQWC/V4RgLKUPiV9\ndGrRvJ5NeX78vpjktWd3mOC+OTCFkMGcQBpcwen4WxqxJW6y50kKmcnPoarc\n/DoawDmUuO9MdtT704W6MJje7IeSF92EmTPbx9Fe+LLMTKIiMFKTbtVGV1F8\nTv2eAQN+CD5oC0liSFdO5xLaR5aomyXV7CMSIAPI7Kv8aYLNofOdQ936l+10\nCyw5hBH/0xVo3+GfAfCJiApypOGht3xNWWMbAIF3e5nrSevNEhXxsJl80C1y\n9/S/\r\n=gBld\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"delvedor","email":"tommydelved@gmail.com"},"_npmVersion":"5.6.0","description":"","directories":{},"_nodeVersion":"8.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_0.0.1_1533996816392_0.1992605215052634","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"fastify-cors","version":"0.1.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@0.1.0","maintainers":[{"name":"delvedor","email":"tommydelved@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"58b04b056eb42a3d4ef7f916f376016ca9088c7f","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-0.1.0.tgz","fileCount":7,"integrity":"sha512-yHieIL/WWsulcTuF1QoEpe6I0ECTfsN0X4LDI/WYSMrgPCsFrEWIaVILfZkBfzd2XNv9AmTQveeK9px3R8olXw==","signatures":[{"sig":"MEYCIQD/5LJUuotBzhhtOpE+MZbd9gOsjNLWWvg+ZmkHaJX21QIhAKJgy1qYltT2WU8iAzladEZOPh4eiEnE4MJS7s24MzwP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdCO9CRA9TVsSAnZWagAAbZUP/3wbP71AIsmF7SOtD6ms\n3uvXtVHDeCe39JkXsSwUXzMjojcGuSDyS0xnQz1zeifzAsnfHfvtvioK052S\njw9y1P9Zg+hxEMB2EiXk4/hLamwNVlFq+/Tt69EVeBSOcyky+5dd/xOFYZZc\nQeqAleAD3dFIsqceSoK3KaT8Rfky0oLH0Q23ZUsJdSy2MZ9sD9JvtdEs440y\nhvXamvBBlNw7cMcQQIcV6+TFW90TMPQhkkCpwNNlAXHEfqRJ9FV4WGj9j8Oo\nUHpZMkpFIBMv3WVEVT1enE7Gzf4weiWTke/kXFVBYsc3yFB29/VRvyGnoe3x\nhGqkrJgGvQ9TWBz/Rmv3snACTcGMZvJ27KR/fB2xbscOpQVA57fzs8LWR0R0\ngJLpYApjwdRrEkvVsgPcpxcIyms5fgsYu6hq15L3Sc03ysub4wDrFGERsLLH\nm+sWcpaxNWoRE7KhR+rWRgMK9evI/aU54EmwYWt2G11Gs+40wohKh3x/9bnf\nzWxOVb9wg4Q++z5nm/4E9Zql5ZajxoukhwoKuSqQhuhl9IvmzH94FIRXV4k4\n0HtYBFeuMxYlFnosBl1DJ6XCZ9RBByU60VkmxXjCkWw3TqjlqxmTaWbeoatl\nA+i1TbxL9yEXknA/q6/kSyclUuQceYiwHSbluUQwcEDda+zvh9FYyOa+mQiJ\n7iks\r\n=+cda\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"8db32f273c5ddb72b6c7826837b0a474d9b25454","scripts":{"test":"standard && tap test.js"},"_npmUser":{"name":"delvedor","email":"tommydelved@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"5.6.0","description":"Fastify CORS","directories":{},"_nodeVersion":"8.11.1","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.0.1","cors":"^2.8.4","fastify":"^1.9.0","standard":"^11.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_0.1.0_1534337981606_0.44203529781869166","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"fastify-cors","version":"0.2.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@0.2.0","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"trivikr","email":"trivikr.dev@gmail.com"},{"name":"wedgwood","email":"wedgwood@outlook.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"8fce0a2a5ba05ac08c7d6f2ca4c501b0ae638e39","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-0.2.0.tgz","fileCount":7,"integrity":"sha512-bw14FmjHm8oF4TDLkwj2TpssH6O2gE0NpsRqLe7F1Gh9Jf30Lx9ZzIznhqaAKOYS+LJqLIt5snurv7urgqYntA==","signatures":[{"sig":"MEUCIQCdAG9kBfvr/noiInZMCzEPYQjdP5KrAk34Vct2anVR3gIgA74Ek0YCG8afaq4UcXeVJqWbz/v0bve06dXPoyPwK80=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbz3X/CRA9TVsSAnZWagAAKDcQAKEpdIA1CALINufbvmg5\n921RdBWbdXL3v5skXR4Rm8B6NzcVPsGWpCKUGs1YumLC8gqhYNfJJyU3GTaW\nVqgQ6bfPgkTr88io7FyqPJOmrt2mAxdG7CsdiVTUifOUEo8CSM6KFJSTUIdz\nzDnNQyT+RWbq8twP8RiJFE/SjzkV6ZYGpiu3OfphFYKwa80+F0NOeoQtwWZD\nnDYoakKk7XeXnVHekpyAMECtyiZEGrCJqWmahYKMyuZOtVSww8KWJ/zPK9Km\nt/4iPxvsqesgshzM1uKuA8xl00MPDWxkhAHno9vzssFd6wG2FYcwNou8yj2B\nkRlvRKUoWh+kO9fbNBM92RAQbemC2ZeJwjvdqGDyvRyxCetWU4HYSwsz0wFC\nLXStgNzKkYm6LDq5SDaLBP/irZ9FoIWhsQBKqroRquljUdusxdSYn+3wtGdL\ngkmqa4mcEp5Byaovg6P3BqOlB6i7Mv704uOw4/+gDiOybbEz2S1O8s2/8Nc6\n8qx1ABuh0sV4geUfxZAQqnogFjTCzwb5KtfimZ6Qe2G1GM9cG4hFz79GCp2m\nYAwCRwlN36W561N/VNc4LIb9Gq1bk9pG0JddVus2yzp43YcwfLOSV+IytTaU\nQmYOTgcwQ+HZaaSF0omiWMhyaH41r/eJG65dFTvBxur5JgVD5UP8WEzA7czu\nFMHw\r\n=EEcl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"c2a6c7f1b4d0543fd452609d22f931e6531b1cda","scripts":{"test":"standard && tap test.js"},"_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.4.1","description":"Fastify CORS","directories":{},"_nodeVersion":"8.12.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.0.1","cors":"^2.8.4","fastify":"^1.9.0","standard":"^12.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_0.2.0_1540322814966_0.18740618836580847","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"fastify-cors","version":"1.0.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@1.0.0","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"trivikr","email":"trivikr.dev@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"a2864274ee9d7699f47f9ad8a5b4a736effc7b16","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-1.0.0.tgz","fileCount":8,"integrity":"sha512-ebFNKu036EqEPLe071sT+f2umL5rM1GfUNj6G69JMnL7gZs8qKOMr2wKDrMTtuTpGydgsdnTVjP6qSGQWfC6dQ==","signatures":[{"sig":"MEQCIDRFPy923GXq762pVxhnEFt1AlbYn0OUlSPGy7CIBW19AiAzgfbbOa5Brs9ZykxJHGV8OpnAGbNkYvckXEv3szYLUQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcHEAICRA9TVsSAnZWagAAGAwP/2NNZE49kZK6OrhyqqsC\nt8V42jkOteuaESuvDkJalbv0dCLeZx9Fcu/mxnKkKo7txXgcCJzqY/dHb5VJ\n4KPnpw4dDOmH0xqkIcpA5BI+JF2jruyRhvXugZ2LAGzqPBqjKVdW6zcDxV5U\n4H/+KUIOPH32K8W9KCMCAgbxPtCyBZAfgfIdbJB0ezT3Vo0cOL4mrNMFfhHw\neH9Nlyz5frfbrHfcXGLn6Mffxv75WaDDkmsVZSX3U4+QenbE1ghs79mXre8g\nXTeUHVeCw078gKhGGXATL8qaGCzB+65P7O8PZMrf7SYKKJCC9uECACwcYrTD\nJoMaANimjQWETorRlpJGTtUqxAE1r3OhsTCvrLuDqaaEnZSZoHm7rYlPF0jh\nzz5ZuZw+Zz8tbxMpVIf6w8T/ZrQxrrRduR7UHv716V0QtrPUzPZAH49Rxuem\n+HKrgTxhy+vLGjZGGg1s7aTlD/p3J70j/j6TFc8fZEZSvKVFhPgabh6J125C\nJiUi3AgZfd1u8O18ANwr4DH5dA7/Nv1kL6tGiXFhwsC5AjKCQ0v8ZR9RNw08\nywbVkkzb2iqk4mPqg198NokjoxP+V5UwTj0zaUkIe/lZLbPC3jJ19lUSxMCc\naYcUj0ES3760sMrc8ZtDv6SU0Wmm45VGP2Uy1i4jkbH0/DpsM+zIeIe2+sxU\nogqG\r\n=79pU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"6e2e0820c9336d67afa8c5d9a389a680f2898cd9","scripts":{"test":"standard && tap test.js"},"_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.4.1","description":"Fastify CORS","directories":{},"_nodeVersion":"10.13.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.0.1","cors":"^2.8.4","fastify":"^1.9.0","standard":"^12.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_1.0.0_1545355271761_0.6634574649255183","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"fastify-cors","version":"2.0.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@2.0.0","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"trivikr","email":"trivikr.dev@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"002fdff186f4f7562bb366da8b3c292957f34b2d","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-2.0.0.tgz","fileCount":8,"integrity":"sha512-7buNTYT6It5O3o1OV/IHmk5jxA2hBYx4Fp3RpWoz6X8odXwJC+KjPyh/Nzf4Mj2fpO/4K0cE7uLF2+RRbQIs3w==","signatures":[{"sig":"MEQCICDNLCBtTV5/GYdDdl3tyDfKC33bEALAY8uI4bplHHVwAiALS3wY8s6dj91WQmaN9oGvgOwMKXHwtGvr1h/+Kyw9BA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcHEINCRA9TVsSAnZWagAA7bIQAJP38A3TN/viP+gi/4dQ\nLkXIAmNWv+Cy/+IlhpQSKzZ3h4N0vZBgMm7QEFdhZE2LKmc/vHhDwPx7J0AQ\n5eYDaEMV7zdbkJgEw+YbYXXP/OnbyvtqQWLYgmvWyc7O8hsmFLqag6DNDn00\nRATShF1VgLoq2gNVH1eqHuxCKd/rqVR1/yv5yCstFo1agiztkYncnJuZAMSH\nqfN8uGLTNx1SM32M1trc9iFAIafW6D9JAWo2BNENQreZB837anAtsuU4tUHr\ngM2SM4EkpDN6MlUXvbM9Jnb6jrqBFz08ZjHctL8t1iw/EM9QJ7sTB5vQ8HXn\nNLLWAGboAkSSfpVhzxt/NUfgNttCjBh/JB3SVffIrMARoodFJlDRrutbCiG1\n6YWFRcJaktGwr8Lu65aVpgFGuHirql7Tqw6RjzJlNKEAMLUKrOxWMsAicJUs\nSPrtvPfKCVzvo0P0Zo6ijTotuk4/fuKHOY5Pqxqi9lXl7ZxxBp0HNatjNAPV\nR22XDubJqVJMClLbRrfBXV6qRl11xStK+EVqS7ZTgv4AZBXzHmzbxrgSe+gb\nRy6wcLz5MEkyzf4nlGK2rwOTME4JSE53WzF34q9SbgTXaEdUmCiODkhRhxDT\nG2Tn7mr5FHcq/G/PBHdNZKiozUz0m3aEwtnsAC2Pciat4NsTHL/kjaa7vz7g\n+aFa\r\n=HlZO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# fastify-cors\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)  [![Build Status](https://travis-ci.org/fastify/fastify-cors.svg?branch=master)](https://travis-ci.org/fastify/fastify-cors) [![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-cors.svg)](https://greenkeeper.io/)\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 `>=2.x` \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'), { options })\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.\n  - `RegExp` - set `origin` to a regular expression pattern which will be used to test the request origin. If it's 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 [object], allow [bool]`), *async-await* and promises are supported as well. Fastify instance is bound to function call and you may access via `this`.\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. 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\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","gitHead":"a12d7c2537cc3bd07ffbad6165bd9ca9c2b5a295","scripts":{"test":"standard && tap test.js"},"_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.4.1","description":"Fastify CORS","directories":{},"_nodeVersion":"10.13.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tap":"^12.0.1","cors":"^2.8.4","fastify":"^2.0.0-rc.2","standard":"^12.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_2.0.0_1545355788841_0.2838983115487044","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"fastify-cors","version":"2.0.1","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@2.0.1","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"trivikr","email":"trivikr.dev@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"702562ec4ba4e69a2aac524f45b3a7bbabeb98ce","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-2.0.1.tgz","fileCount":8,"integrity":"sha512-NwWiZZOwTP6cH2D6g3Q1vyMfMbOGnTCVXdrozWfI2ecZXnOlkDhpVUTot7gOAQDi1jGwMB7wMOqd/dFXofFs+Q==","signatures":[{"sig":"MEUCIE8LKGWT791r/tQ6+0RpVihfv7gIUePksDdeMjjm6vo7AiEAlRJ9fLzRKKsquWuTOdrj9cbf0PcCjG9secl62phVNpM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPDM8CRA9TVsSAnZWagAAeK4P/ivCTKXoMNd8KaZtsUkK\n857UZEj5GQQizEYCausBr8xYP6Zo5u1XEZq9GCd0PKVwceODc9ILsd6luOvK\nVZi2EHxL6kvuosPqEx+G8fHbH+AgK+1ZVkI+/bRNrWiqQQ6zdjL9wZLYHzIx\nzVRmb9gwMBZ6jS7+lU31XiUadBI44HAMpkyxxbpMyFDk+N5SrRwZiZz5XwET\nXKcYZfswDOoEjHgWqqB/HzAJ7cHCj71eUEEbTPWAGYe0dCqZzsU80jIh+/Iq\n/yQwFQAqDIvUB50iYXr4sc9JF9nfl8BlHNIMGSinDEmdujnqX32MnRuP5Lbt\n4jIzkNw4NEMdQf3KiC0JFBe3HBmoIOqu3Ayb03Cs1+gsWOom/3sJRlLzUU63\nF9cwUWRg2vsrsznNHlbmXQSa2sirfHZweAILTLpOXy/z5m+AxXnxvZDuhdwt\nZAA1gkLM1e+Z8mdCu58R3+qoxvOLegN/8VjaHtmqBO7eNGj8oYK5VAUMiCVF\nEh7GcNkM/O/N9uRgAzOWV0j+9108yWENQ0CWUTXjV2s5PWJHLpfjZOQBE9ba\n0u/t4RpMxDNwKZ3LWfa0/tFUekKO2Y1TMW5yqqXaro0Btats5/+syiiJSSYj\nn1+JqJRkum7crONp68K9+J8J7cV13c0ulDMwAwHkRgVl5XaOAGrOn/Na5Mvj\nwXrL\r\n=JvjM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# fastify-cors\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)  [![Build Status](https://travis-ci.org/fastify/fastify-cors.svg?branch=master)](https://travis-ci.org/fastify/fastify-cors) [![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-cors.svg)](https://greenkeeper.io/)\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 `>=2.x` \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'), { options })\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.\n  - `RegExp` - set `origin` to a regular expression pattern which will be used to test the request origin. If it's 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 [object], allow [bool]`), *async-await* and promises are supported as well. Fastify instance is bound to function call and you may access via `this`.\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. 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\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","gitHead":"15346e80dc7ede4e6ec3247c88b33192fa05fc4f","scripts":{"test":"standard && tap test.js"},"_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.4.1","description":"Fastify CORS","directories":{},"_nodeVersion":"10.13.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tap":"^12.0.1","cors":"^2.8.4","fastify":"^2.0.0-rc.2","standard":"^12.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_2.0.1_1547449148324_0.6790807166532777","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"fastify-cors","version":"2.1.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@2.1.0","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"trivikr","email":"trivikr.dev@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"7b225f7fbef1f77e59d5196cd4c4560580327ce7","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-2.1.0.tgz","fileCount":12,"integrity":"sha512-NQEhCZOkfmrtmPahWpiwH2XpT5Wtp54bSN6OCJoW3fpqydsRL8BNg8nv+Iun4kiUMbnhs4k65kTHN7FAvrsclQ==","signatures":[{"sig":"MEUCIGHw3SISoyZIfXGt7ai+GoI62mMujaQtshrm5435iuDSAiEAto6Mxgpu8R8rQr0yudxLl8V/hXo7rBPZ3Zn5vHcAsgg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXNiLCRA9TVsSAnZWagAAG9UP/0s4TdErBTevBbikJ6HW\n5PNVN9FIATRHiuMif6UtaskLx+hnSU2oUAjEciF+a/Usd7j7kApDovx86Gm+\n9BMqNSgPfPpv3uochQBgpkUVGLYnDbltyYpajHmqYYj4zQO3KQygAjUjW8V+\n6xGw7ad8YR+n1cNfM7dOgpHfqRtbu71W+ew5tURA9NGW+W0WWrnNxc/uzJSA\nzS+4yOkMYaG4mY6R+OkVGYu2Cpno1p0jUqKI1tSYlzGb6z+jy+7E/JqMhGy9\nLwXTVrvU8+iIeavPx4Y/AeZCxIV9zHj8y0UnydT3MkSycBJVeCkWrnYY8Uu5\ntEFIt5f0dLeDAgFUWbcl4Qu5J3XhKi+B71lqH5ZhRfZ73ckf/vsRt+2H2Q/d\nnmw7Jjrmozvms3LEnsJ6J17myZLrb4tymnEuBZ4e8hwpK6VkZlchgxl+7RT2\nxMDVq9f+F/FOJvxZvVBkY8KzlpxDkRROrb2NCqrGHuBlzfQtV1AfqHb0Tt6A\n7ZIPmfQ0B+o6sVHnx17RiRy+vPI0y38mS7ys4SPI0q9GpFQP4DuuULgEs14o\n4Z/1JEBNudrIAHlysNJWiB4tv8hl8L+Gz5SATLK5MiRJnc9e0jLPGowF/un7\nsBGlZ1hdv0a1kC44a77H8b+2sGNPgb6bAEP4/CeTrnZbJMy0vm3F6YijQa7Q\nRO+F\r\n=aayi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"5980d11e44bf61948236528da1d0572186238290","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","typescript":"tsc --project ./test/types/tsconfig.json","lint:standard":"standard","lint:typescript":"standard --parser typescript-eslint-parser --plugin typescript test/types/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.7.0","description":"Fastify CORS","directories":{},"_nodeVersion":"10.14.2","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.5.1","cors":"^2.8.5","fastify":"^2.0.0-rc.4","standard":"^12.0.1","typescript":"^3.3.1","@types/node":"^10.12.21","eslint-plugin-typescript":"^0.14.0","typescript-eslint-parser":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_2.1.0_1549588618725_0.011709285074471332","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"fastify-cors","version":"2.1.1","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@2.1.1","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"trivikr","email":"trivikr.dev@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"614bb87ba9fc6684eca86340380b7ed9e198a032","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-2.1.1.tgz","fileCount":12,"integrity":"sha512-A7jIehXxPPHg2QXbkVcEdx9FfudLGIS/QSouUcAdMBKyLXYT0iJgW1x6IN6palkDVpsSa8S56KXrZMaKa4PXoA==","signatures":[{"sig":"MEQCIHWwUVpLmpOxqlqlLh9K0R+P5F4qxhgid91SvNetAQtBAiA5LWnd0rqEC8EfQC5/SWEMJcGU7GeZhVSmb7ZyhhgrNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZZp+CRA9TVsSAnZWagAA7KQP/igyVoSCRqNFrFZFsCcR\nWy3hCnyxxS9SMn3E33HCea223+Mxwcpd9W60q8zr8mPCb7FVV4jDtOBZUzJy\nQ/qS2vAsNFuYyNh0pn3PSVqJ5RuhVSWSn89rRnZ7gQGw5YYejX6lNaMV1wGq\n5vMjUqh4+C+trZMLUDJI19fxU1laMhu9spfXP3iCEQ7z3NzH9FoywBRRoUW8\nYpIKAHL4jmPPLgYGwSI5vvhc/eJK3qfPA1kI87MilqbSIvimz5PqQIjrZQh2\nJYRoMgRjdNjV5TE8XXJKAbFKI9IthdvwR49gKiMmRloB6JYPB724lJT5OCIO\nRXjcYOlSrzw+H6D9H7NGMp6KALF0dlBlSxvlaeHvmXKQvAHWxyRuneab4IIf\n8VNUFr9ydhZIK3nwJEAiQN8/REIv/9Kgx0ZtKBke421Nr7cx6eIx2u1yv0WI\nYCKXX3O+oQKPwdB4vI0BrnJku4XvPAXAFquo+GGsILTvukq1GNpIHuUIHIIG\nGN5TwlNusIeTxYYDgaC6DFVlmwrJFtWKHe+lra1LMrUcwfxLx+iJVGkaquyu\nFPZelhRAmecI+WS0MdXuGd/x90nMgxiuQpZCm5hHDYm+ZApcaIQTnfLYGSuj\nRtEokelrOR+JEWcqPwugKtOMRo2n3awySw8EzdoYOOf1ZDghNunCFYAvNhgg\n3G2c\r\n=cUF8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"b71f278f0e36ffc831b2b428f1f043b88b4bd821","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","typescript":"tsc --project ./test/types/tsconfig.json","lint:standard":"standard","lint:typescript":"standard --parser typescript-eslint-parser --plugin typescript test/types/*.ts"},"_npmUser":{"name":"cemremengu","email":"cemremengu@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.4.1","description":"Fastify CORS","directories":{},"_nodeVersion":"10.13.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.5.1","cors":"^2.8.5","fastify":"^2.0.0-rc.4","standard":"^12.0.1","typescript":"^3.3.1","@types/node":"^11.9.0","eslint-plugin-typescript":"^0.14.0","typescript-eslint-parser":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_2.1.1_1550162557369_0.9831154596198253","host":"s3://npm-registry-packages"}},"2.1.2":{"name":"fastify-cors","version":"2.1.2","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@2.1.2","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"trivikr","email":"trivikr.dev@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"5cafc79b974a73f61136f1871bf59208af06b7b0","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-2.1.2.tgz","fileCount":12,"integrity":"sha512-/TEco5naXbM2ob3fSvl8IvbRpM4fBDLnwOZ7KJ5frpgiky8Yv0O8k8W5JE3oc64xfNeVcv/yBkqgRByRPk1ecw==","signatures":[{"sig":"MEUCIA0T00M+E7gP2oWbYJA+Px0vKVNKCW2TxbYsy5nOMX1CAiEAs1U5dQ7PJv8MUwqi9xJwZmLyvFbWmaBwZP5ZrUmccxM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdWmUCRA9TVsSAnZWagAADk4P/3vXmH/oyBki3ZCVVgC0\nZhO8Y1FF2ymvdsiDerWY6Z36EnnL2bIsw8/4ipUhKyDWVT0X+rvEc8hFXiXz\nkBhRv6hYSoE/guV8S5FQj0KOR/DWv5O6aAZ827LqxGv0Rclh1i/oSfSaNnIx\ny61jGO4adGZ8wFIbOL2bXi7UxTThFHyBZ8aDQG5ggDCV2fpnVc3zVZtrG09O\nZkCtZPyBXUEF2tJE9xX0zz/h2J3o4nf0TxnrK5aAeos0v7zHyCTJT6dhyU+t\nql3TDoBH90F9Zlx5C983w5Q6fET8XwavRkOfaj4UfztChMp83mgXEh5/KjlM\n0vVk2uFu+drljsuZ6az18ybopGzc4ze7Vr1AMgxzCGFq71f1wsTal6ww7mAo\npzzrJcsZk6CxBvBsGDg75HspsIpru/BS2bxf7Bd/ExZ8jHjGUSn2aFUHXfg7\nOHEKkaKyzA4/1oZksQaWchcti6nWw6lapn83xFadUM6XcwKm0TwW4fnEkNVT\n4NBKLwP6fY3OwH699A0wSwVZROoxe+TuZO/ecSmURJfnSkLSeO7iSykOBddp\nOlUfGw3u2G50Ma1+sCQCLfvQqUo9GoQulnKO2qFxjGyQn+m3rbxazqNAI8MI\nYGcM9lBtkLhtY0iqHECHpA/+I/PdFn7st5tqlCJwPstYpg1pO8dRh4VcNaTa\nhBhe\r\n=HkND\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"3a7f44f2d4db17e2ca5dea7e49b666cea20e4284","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","typescript":"tsc --project ./test/types/tsconfig.json","lint:standard":"standard","lint:typescript":"standard --parser typescript-eslint-parser --plugin typescript test/types/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.8.0","description":"Fastify CORS","directories":{},"_nodeVersion":"10.15.1","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.5.1","cors":"^2.8.5","fastify":"^2.0.0","standard":"^12.0.1","typescript":"^3.3.1","@types/node":"^11.9.0","eslint-plugin-typescript":"^0.14.0","typescript-eslint-parser":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_2.1.2_1551198610812_0.04342730483577162","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"fastify-cors","version":"1.0.1","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@1.0.1","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"trivikr","email":"trivikr.dev@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"ed7b00901d6deb58d969c96f995c1501ce3edd55","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-1.0.1.tgz","fileCount":8,"integrity":"sha512-7ltGnIseQEnJ2Ma6AxWLpnd+QxRykWfqef6a6XbpZy37zHBJPAykrig7e8IogxMn4Bod0LYAQn4Mwyk9puzrMg==","signatures":[{"sig":"MEQCIEEhpOsrxmG9hSCWAJT6ZODQIadpreKJ53LSO44RO3sNAiABUipc8255OT+vrdqNjDFgorWlmVtMImv63C+1I5mG+g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdXUxCRA9TVsSAnZWagAAdC4P/2Rz/HIQ0yS8cLajUFZ6\nd8yuzicqDrKYYKePe1HZdw0bQ6pcIhqLN0I3Fx9m9K9FVGUOVWp4DPTveOeq\nlJBKi55+lrtYbQSS/nlHGaea7EZxclFLxwg36lFrKPVqhnVgb5NnybOe4W2e\nmw+O5PhNT8V6wn5oPu0QZ9LBOk8iRFuHE/p6zJBj20JJRE3rD7oCn/mC2jrc\nXHcBuWgM0XZQRyieeveXEkBqFBXeunW9paOZB1dDr4zcYAFzI6QmGI9I2ut2\nofiAU5f0T6P5cL727EXxNRZ0+9SoThC2OJ/TaWE+2khPMBMJyQunbvxuYhf1\nZK7niDwRy3YBZuSw7gTJUd8COR09ykfQqEyJVF2tdaX1NKZIIffdtaQvoFEH\nTgQc1nnP0s91pIroYMtpiYOGoCAFUmDUW6smh5jogBl9o4I4HFwjJnPYY3NF\ndL26Ds03PXLKE5d26bxRZWdIbXX2G9JRF90EskNDUjvqepMi8UNVg5M1BcN3\nQSZRrN0ckTD3rFSGLX71iQzHQuqp1qMvzlKSkFhXorgyoBkP3QaJAOu6JUA4\n9hAuDLPn1iA2/ySzJBdfVEYzWToRrPoKPM81wcubv+B5hoXS7j+ob2NvlUj3\n+x6+xhXgqlIR3NrMlCjJ+l5VIePex7J45xmEDOHgEa04pm+Gp8kZva06sEf3\nLtPQ\r\n=5m+X\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# fastify-cors\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)  [![Build Status](https://travis-ci.org/fastify/fastify-cors.svg?branch=master)](https://travis-ci.org/fastify/fastify-cors) [![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-cors.svg)](https://greenkeeper.io/)\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 `^1.x`\n\n## Install\n```\nnpm i fastify-cors@1\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'), { options })\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.\n  - `RegExp` - set `origin` to a regular expression pattern which will be used to test the request origin. If it's 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 [object], allow [bool]`), *async-await* and promises are supported as well. Fastify instance is bound to function call and you may access via `this`.\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. 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\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","gitHead":"3715e14ea0ccc5174ead19ac6af7c9a5947acd63","scripts":{"test":"standard && tap test.js"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.8.0","description":"Fastify CORS","directories":{},"_nodeVersion":"10.15.1","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tap":"^12.0.1","cors":"^2.8.4","fastify":"^1.9.0","standard":"^12.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_1.0.1_1551201585143_0.6378706100094327","host":"s3://npm-registry-packages"}},"2.1.3":{"name":"fastify-cors","version":"2.1.3","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@2.1.3","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"trivikr","email":"trivikr.dev@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"5ae8fcc620a47270cd68d46acc3b8dd7919b538b","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-2.1.3.tgz","fileCount":12,"integrity":"sha512-ZHFzKn1DddymsxzvdtjEQfkuMfGgwcp++FKuTTMmAN2KFB7hJRmOINffjfRdmUcgXdE4LoSy5XJROWKx/b+CPQ==","signatures":[{"sig":"MEUCIAOgOd8lHt847MF2bZmlWNp8UfRj1Zo7Yz4kCUT4bQHiAiEA1f8SmeJ7MUMRFz10ZyTneYEyzeDmE6PB7KtUm+jscI0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyeYWCRA9TVsSAnZWagAAjRoP/3dLoMWoA5IiCGoVsQRE\nMYzPy8dJF8LvBcJ6phIBLJp39bPzRTBf+tn+vtovpNr0/BIsFbziryQ438b4\nPAFongVZzLKNDvVpOLjzotpC8+kZXEguLawHnJCnhOipclflpvM4fLNKDFAK\ngMk8N74mkBufAy0wRPLQBtV4eojIu/pzO3dz7nK1HTr+anJjtm7YaVKkgQL8\nDLxH8F8TJROF9kxupiJ+Xx+1+JYpNOYstKYfUAJGnxZJxOGQ0r1ZvTVQ4oyP\nQeQuQSrrPhzy/Mydv552orp4rqr6Wl+vwNFn9un+m7HQSNro3eSQUSqYSkGp\n4MSEMzvVSBm24gWcX/8qay5XKDMwkSyFpeMWmBiAESUzugwi7dj+YWhM2q8e\naJxYP7nuHRgb0bgmWuN296aarKseFmqfC4nof2peOIb/kT1s11mr6YfdVMRX\n8qovuTe+RXpZETTs2pFhe9LVxuAoWyzYxg2rLBfklK4LKPTwSuaYAvAZO/mH\nTVj6i54KqVXUbhPSOYubq+5aByymZb2L9g3FpcF/psE1MyBt5Tg14g1azAu0\nDAdhaFJOMxxy/lezEThhbUbF2q+EksH8A6rjaZ5byog7gAMm8PcCm1HG90ig\nlcUABZ3lAQ/xaCGDTuaGE7KFwNmM36tSwKpPQgpSWP48B6KbLfjN3ECHsflJ\n0oGK\r\n=xu5f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"2ec115d58604dc3187abed1bd4d5ccd865107068","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","typescript":"tsc --project ./test/types/tsconfig.json","lint:standard":"standard","lint:typescript":"standard --parser typescript-eslint-parser --plugin typescript test/types/*.ts"},"_npmUser":{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.7.0","description":"Fastify CORS","directories":{},"_nodeVersion":"11.11.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.5.1","cors":"^2.8.5","fastify":"^2.0.0","standard":"^12.0.1","typescript":"^3.3.1","@types/node":"^11.9.0","eslint-plugin-typescript":"^0.14.0","typescript-eslint-parser":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_2.1.3_1556735510399_0.2094079994857645","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"fastify-cors","version":"2.2.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@2.2.0","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"700fca91b735999193699980cb005a25f85d91ce","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-2.2.0.tgz","fileCount":12,"integrity":"sha512-xnZmYPWUxrIBEsv5x2JrsDlrskoFkOE0KAwedEe6dn8TCxpARwW6U+nofAKWZMDF+dXkEslRCgrd1ixdEIkB8w==","signatures":[{"sig":"MEQCIHZOhHr8vi0YvMqtXBff9Knol6obmxgIi0VyBUKg/tbQAiAT6TKtmkA9vz3VOrnAYEHQ62j4GF/M0P5CYCsO+1cUUA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyI4XCRA9TVsSAnZWagAA5KoP/jabVpcPWsm9PSBdK0Sq\n/Ko+E98pkYP4Oz1qcFBbs1GkkuvMM1nJKKFaLs7FU41092tpHidl2gePDLAp\nYK08FBLQhjUgI84B/pvyMLYR48byT3xplZ1OFhr4tDNUeWSJOcaxQIH7TO2e\nQ6oG9KFXYWiStSXQOtV158TQ76ZaYzML2T79htH1S/OlyHxHHGDnOljl7hil\nhkoLi/4S1onaS/phg8mzt9fpJJf5liKuZk5o0jU7rNGWKOpKY3JO70H2oLCT\n1oxf5z++qCSPn2raHnv1igFUSfuJvt5prhmX08v7pG7QhFHWm7QthpdbFPdo\nyB2oJxeTC0a1N6JtsxF6/TfbSy3iuok/uTwmfUcgev1hqxELZYuSbDbKgs+V\ngUmnZzc0yeW699oLeVRf5/BOoM5tW4chD9HRroy8LE5myaQolughnDxsasM0\nKByf5UBh0iTowMUanu/wGEv4ZNd64BRBbroOs1/eFh0IrMNsR3+tQTVaXGxl\nHA7d4Krs2nIuoqtQhZ0MtzgxM4c0BO43e6ZRbZuTXD1KT2ZKhqKJs8dni4DQ\ncYoFokgFIyDmTUKlPwZQ8SQjO1wk6LRFo5gNVxa1ImlHBnhtgxlA4eDHRWrr\nP4j/g6pR7CsrJa246jjZCj2FGDiUc2hAHDdWayCf5loe4cZZ9vLj1wSS4LRa\nLiqk\r\n=7SZw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"0d1ec3346af20e09c12a8b900f78ce867d033520","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsc --project ./test/types/tsconfig.json","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.4.1","description":"Fastify CORS","directories":{},"greenkeeper":{"ignore":["tap"]},"_nodeVersion":"10.11.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.6.5","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","typescript":"^3.5.3","@types/node":"^12.12.7","@typescript-eslint/parser":"^2.0.0","@typescript-eslint/eslint-plugin":"^1.12.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_2.2.0_1573424663392_0.1857629996994461","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"fastify-cors","version":"3.0.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@3.0.0","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"63b914d8256be6c6ae7d4cb90e33eaa56a1261c7","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-3.0.0.tgz","fileCount":12,"integrity":"sha512-bLV7OIZ7ojvLaf0jOEsqAO4ShrBSc6412R6SVDIrFK6vIUAezTAVgk9MqcklZnc3ch/N/IC9kGPu5AfhqAIHkg==","signatures":[{"sig":"MEYCIQDnN4J1qI+/6QHmzh++67CGDlp4B7X5Qub++gr1EuGXSgIhAJyCsiXUCne7RMHxzUYb3yoSPvndUmT6Mahx1bHo3qxk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd2FlgCRA9TVsSAnZWagAAI+8P/2cNhcPlNklvAkduOasA\nsel+zEHJypTin78KayBUqeBnPLLzpGazJzRc4t/aZx0EkJUo4OTTY0W0A0UZ\n45r/yk2ByG3HdyOUEeTDQPYgmlGPa7wrh07S+CMwOITcaLpMCCLa8N9tQsAi\nM18bgp92qvqAf4XZf0JBYWCPkluxCMroEk0TyMBQhorjR2aGHUl1/XjL3DIV\nbbNer1HzfPZfophzk4b98pMEdmb99BloahP5nYyY94lQCX61yqZPrfVBWbdF\nFGX8ZpAb0kE0BIWLWCkX0ErDJWt1eenknsrXq+pFpFw5ltVYEBKuit5Uwz4b\ngGRiwwMEE3oEttMlg/hNQDcEipvGTcEo1bK17lYuvXuMTSKAYSq7/mwszoSC\nlthoGSiRk0mALonZbsdYealeozVwjPfdNu+7npxZOs4BHGXdQt8o37O9oxZ8\neEPhRFFCRz8neiU4Tmti6+ZyLxOSkFA0C2cRDNM98tIo81afuyclPSdAKE87\nqS6jPscrKpaKcbxPJfijNcDa72Dr2Nnd47VglMAGYy4KTPDVaxIjzOW01v4l\n3sTfH9j4FqZi3yCxvJLDocF7fA04GR1IrDltydygR7xFpzmfmqvM/R3aAfex\nyZKltzn2ky1sxdGtFPRO7ZhQGnAD/ozbHOyP/sbaP7MTYqnZZgeW8PD6cxSi\nU+0U\r\n=UuNs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"11fa5811d5a804e2d146f5225065a165a9430686","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsc --project ./test/types/tsconfig.json","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.4.1","description":"Fastify CORS","directories":{},"greenkeeper":{"ignore":["tap"]},"_nodeVersion":"10.11.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.6.5","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","typescript":"^3.5.3","@types/node":"^12.12.7","@typescript-eslint/parser":"^2.0.0","@typescript-eslint/eslint-plugin":"^1.12.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_3.0.0_1574459743869_0.4722572508596341","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"fastify-cors","version":"3.0.1","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@3.0.1","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"6773aa3756beb886637736ee97a3d6063d9d0f10","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-3.0.1.tgz","fileCount":12,"integrity":"sha512-NVaYO8iMqlnMcnKo2jrmbY3DbMsgXJfn4uzDcBLFGOgbKXjJ70plqtBi2XlEjWahty1uCkcrvRDHXaXgiruzww==","signatures":[{"sig":"MEUCIAZAuTbmErshpwfo7NjbGlR9EOAs8//wh3gSOcWhz0FxAiEA2TGiOZXvwgBMdGPzFeigiqJtOFXc4OuAfPKWDAclzK4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeEYjyCRA9TVsSAnZWagAAu5cP/0CwYI7OXiRxIe57lTJm\nN4CiNTS+iJYnSBg2h3IdY7i1BO1Byb9jMM59hH21z1N1Xde1FEGhp4qI4fdL\naz+Gv94RUCNpC1PCUgo+PcEAiSyaa8xRfU391WU4Bsk7RYcpw8kfpny/kKjw\n5NUMNAA/qo1s+sNEVoR8TRc+sBtpf+c4Kyvnd1bM5P5ZLUhMkxBpNaZ3+tYe\ndT91UePU8A2nRCqgeH8LZDFhtWCeJ/0uh4UWE2yaEdrrVERHRmbyAojImlrt\nmEwcCiq0GP0Lu05nYoLMCGsH/VJnSvLNRpAdVqMO+N5AKvYNmLMfi4uH+GFr\nK3RDw3/dcbjERNlSX1RsrTAlxwoKvs1pqkTG9J9FP54gsPuHx/Gt1e6aGX/P\nZV6H9ue+/ADyN5H0dGbIkgYFe0yPyWWHdGaaTcPJykY5gB1DHBKhMlth/dxu\nD0DeVAZ7Uhppgh+knzSfIHaa6/0Cwm5hozNBeoALZ3z1ERCiRKqq6JhiId0E\nw/6SZAAw08yrBrKebCnC52IHiBumKUlLSwQg9G/wrNXvlQygo1Vm3fQajp0j\n6DZUAjo/cXpQDxe2euef679aGjzzvOlylJAfQZC0AG5QTSffFDAcoqkc0bAN\nhuQrYw5FPlxzua8gSOisnEeHr6PwyVuH1Mak+pJCJP/uRJ7DgFxAkzYdj5Gb\nuzw3\r\n=UgXK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"015954b752dbfb538a5c8e23c5592de03c920d16","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsc --project ./test/types/tsconfig.json","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts"},"_npmUser":{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.13.4","description":"Fastify CORS","directories":{},"greenkeeper":{"ignore":["tap"]},"_nodeVersion":"12.14.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.6.5","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","typescript":"^3.5.3","@types/node":"^12.12.7","@typescript-eslint/parser":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.10.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_3.0.1_1578207474246_0.2433641159418931","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"fastify-cors","version":"3.0.2","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@3.0.2","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"38f380512da513ab5ae4b071756a3dfc461cca4a","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-3.0.2.tgz","fileCount":12,"integrity":"sha512-emqorS6s4W0+v+ZbTwHUwpmT3R1rCQtIh3K69e+QUxbufkxvweJ5MbFrLTEyolMlOCOGAk8NcnUJBDd1aRceCw==","signatures":[{"sig":"MEYCIQD0gFA7MXTMWFoyVZBxsDA6pcQ9lLtBENJVy9dRw2evVAIhAMjGXtw9hzTjCOwIYfrHSBgaeRt0QoSlbmVBUEzF1Xyf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTExbCRA9TVsSAnZWagAACC0QAI2VnBe2V95VtVpsxh0t\nbm69vYhZIgJR0cJwTPkYkZ9ex2SDM1ZguLBdvhCPN5zPBdqSJds45tHeBV73\nXsOsjE4hdxJyVC/iDOUDWiuI067L3CdtGDOmIxYk6gSjJu3AE8ZfeH1O03Ul\nNTEuxDDLg7yJInm9+bWZ6jo2TyJltWFI8Fpiv29oTPodA8h1UANATBifH4Pf\naQYg4sy4wqK1TFEt74aYfXSnXfs9n/VjqISS/GsVJ4F93imSLPDdQZLEXoyr\ns7t650N/zXGXziJ7znz1NTlxAWw4tFvC2mRfLGPu4XetCtcMPx9iPdnlvwHI\nSaDa7fRPp9qQa7y9KPjApqb1/kxaiildER/vv/ab4aw+EW5y14A4oCOCIafM\nHHRs0d4CWWjFQnwcB5wMJGt61YyykIn3KRg/JwOyxsZMCuAz/PexcVbqivvq\nspmaqjvnX2EjCMENJvPtcrn3agSZTSkdRNRcOeCYR6geMbLA88VlRYenlaK4\nGGNq2gR8Kzte8x38fgpKFxBOa7DWdgyimPcrz4SpCt/T40l0v+l9ZpsEGaEa\nYrt2T92pUal5CH5MDgcscsqXKRz1pt/ciLTGJUTuQtzpTMyJa8r19S5O0FXh\nNJRn4wAVH4FX9XSpnKt/GDErqDeEwnM5LMm+wNydevMCi8SM6ONnbGkXJzvO\n22Jd\r\n=yWOH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"e434dcf3f7396968596b523c26f48df9254198aa","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsc --project ./test/types/tsconfig.json","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.4.1","description":"Fastify CORS","directories":{},"greenkeeper":{"ignore":["tap"]},"_nodeVersion":"10.11.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.6.5","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","typescript":"^3.5.3","@types/node":"^12.12.7","@typescript-eslint/parser":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.10.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_3.0.2_1582058587216_0.8825534516929325","host":"s3://npm-registry-packages"}},"3.0.3":{"name":"fastify-cors","version":"3.0.3","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@3.0.3","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"c1b2227983d7b02feff73fd642d81041adfbe124","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-3.0.3.tgz","fileCount":12,"integrity":"sha512-SDMa+GtyTTAU7pWZwY4fukb/VwCZ4c30p0oEaE7/d/+VCvceB1+NzW2udp2dSZZfWR7J1kUookCpw2dLmtAsSw==","signatures":[{"sig":"MEUCIQDSeAybx2tP9uq0mo0HZ/let8rZ37fCdXrcjATaHCFQ1AIgWo4xlJEyyW0C3gffm1LjXbreV0S7Md4dohf/XDx+rh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJef2QRCRA9TVsSAnZWagAAwjUP/3Oj79IXZM0GoesN7P0C\nK+W+ZeJn03W2lh3Tl75l5tcusr+t3z0t3nOyDeKr/bhejXOFffE6k2m1h/am\nTn15KZ4FPtAcpc7BmC2LrFuL5XK0XSQ/FH3sCFD3fezTmCVGf9RYC5x0oecb\n4vh0GXcvkKq7fr8vjW8qZuGfKFpjzJ3A/NT+ee3ZlPM0+SI8R0QCJPpeY027\nRwtuTDrgAvL/hnvm7UnB6nbGrN+sgtZF3tjvIhsNjGl+MaDey74gd42ZDgEo\nk2fzp7mh15miyEp5lb09LVL69l53fNM5aPQwtDFGm5ymoS1HKryGWzc92Cv6\nclNSBwkNJEK8Yl+7O7EtCrz5OV1VnZaMv19YmVg/ZPIGdOjkMQIXOqVumjac\nkv6jyzzMpVxJ+pa1YGMI59fF7d3JjCphGAxmyZusFjtcD9K49m2ptlyOycQf\nKPvRDf3n891ozwhsKpmvr9ATWRm7M6E6OaWrng+VMrIs/8Ipt+zMwsvnn3Dg\nDIBmVeBVmEjiPnOmlacluMLsyQtlBWwgbbGzY5ochUF15R69r2Y/5V8/T+nq\nPckQ1KZD9I4XupJSqNCbEs+1fjzD0Kmn15pOC06FooRiqZSA/U9weDpOhfXJ\nIdbrqnLvEzek32Ou2y3rcRaNCPrbKWM0DABdUrSQ5Ui0bwQivThsYhUydUPN\n7cFN\r\n=tVU1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"6414f9cdd26ee0ea775d927fa9afdc7d6a1b0020","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsc --project ./test/types/tsconfig.json","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.13.4","description":"Fastify CORS","directories":{},"greenkeeper":{"ignore":["tap"]},"_nodeVersion":"10.19.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.6.5","cors":"^2.8.5","fastify":"^2.8.0","standard":"^14.0.2","typescript":"^3.5.3","@types/node":"^12.12.7","@typescript-eslint/parser":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.10.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_3.0.3_1585406993231_0.23842414735823736","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"fastify-cors","version":"4.0.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@4.0.0","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"26ef5e1dc186743d091abb7557972080482ce4be","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-4.0.0.tgz","fileCount":13,"integrity":"sha512-ow3iiiugJEz7aPNQaulgshoJ9PTlslV1aloP1EDoMq2R5LnDX2T12xxMakXu/FDoMp1nJzbAuB813fVtmgKypA==","signatures":[{"sig":"MEUCIHqHiY81lRJqy/inWQh6VkhsL/DGlAjr0TFwlt7t7wYHAiEAmXTxVHA5jrwsUqJ+HFpYRXscqXk6WPMtUvh7G9rhhuw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesUf6CRA9TVsSAnZWagAAhUgP/1rI4A3lLxZHGcSuEch8\nI5gSdxrq0MgkFY5BLYhgxgukq4cGq4lrACCkfUWHL21XZQNRB3huUdFJWypd\nVTGKlLrwaFysYP2Dl6ClMO+7rWejUReKRPHGOxGKx+i88rs9J8xc7fapG99s\nPtF1YaWb34AsoUXB8Ypq4d6EY9COfi/PB+pSQjkHYFefAcdSd00kyeFmtDqf\njqjpCjGJ8JDnKCjYwA3rnJTcctHmdFrNVXuKaC3bPlnCx8uieTBBTdlvlUGk\nSdvcs03fC1/x49yJSk0lpbe3Tq7KaTo7jgzU4Qi37u+8RWFk4sWkIOUN8wkH\nxETDp0AV6Z+6GBRrOifwJXbhoNt4pPwyZbFJw7ExjL8H5TPAsh2RFPoUe/dy\nOkwc5Vfj+PavN0aL2BvKXvaCBhZdKNo9f6/VSer/oWXSHN79ogIZ4IbmuydJ\nhNoNpqkB49V52J6hmp9JdUTIgq2VFx1DjZupv+ZImvfNXnXaXSuYES4nnQxx\n6C6NU6J71QvGEnvuyz5QJoRRZA2peF2c69MglCAcx9ErcPPzmkloSS6jS6Bq\nluKam5+mj0sggKJ/ANFCqypPwetoqQBl+RAaMWhyVjZHPZIgoof7XslLWPol\nVi6bQdjUshDjFMfVyGnesdbVF7/ePx3ZpQKrIrNXgONfXbRit+n2jMxVcb+M\ndf9K\r\n=lHRb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","readme":"# fastify-cors\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)  ![CI workflow](https://github.com/fastify/fastify-cors/workflows/CI%20workflow/badge.svg)\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 `^3.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.\n  - `RegExp` - set `origin` to a regular expression pattern which will be used to test the request origin. If it's 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], allow [bool]`), *async-await* and promises are supported as well. 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    cb(new Error(\"Not allowed\"), false)\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. 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* `hideOptionsRoute`: hide options route from the documentation built using [fastify-swagger](https://github.com/fastify/fastify-swagger) (default: `true`).\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","gitHead":"3b8a4684da9ed1e545c4356deb77180c58d83459","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsd","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.14.4","description":"Fastify CORS","directories":{},"_nodeVersion":"12.16.1","dependencies":{"vary":"^1.1.2","fastify-plugin":"^2.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tap":"^14.10.7","tsd":"^0.11.0","cors":"^2.8.5","fastify":"^3.0.0-rc.1","standard":"^14.0.2","typescript":"^3.5.3","@types/node":"^13.13.4","@typescript-eslint/parser":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.10.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_4.0.0_1588676601624_0.28495538589615466","host":"s3://npm-registry-packages"}},"4.1.0":{"name":"fastify-cors","version":"4.1.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@4.1.0","maintainers":[{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"cemremengu","email":"cemremengu@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"starptech","email":"deusdustin@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"ae6e2533f42b033a35da85ed3d585aafd56c2210","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-4.1.0.tgz","fileCount":13,"integrity":"sha512-Vr4AgypDkRwG16cs1ORnYItZx6FMN+gCpHvP3/nzNZL1HFzf7U/NaSgmC784VqtK8yiqSXZEoTGCsmzeSp8JVw==","signatures":[{"sig":"MEQCICidkMSREez2qESKgseAVRacC/tqwtJIzNGWXw0HC22rAiBogUIFuiR6VbHJsYMptsn56jnwvPxjC1j02oL8hYMttw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFAFaCRA9TVsSAnZWagAA1mAP/jQqYUJ1OqovfBYJ9H1B\nPFgT5IiwRMTR7H4dt2EvJ26INpiJfnik4YCp8By3wE7yeUtllPt4qIy6X46/\n/8ZBhfmuMZOX+8ExVW42tNG6cccE2Czfg0vWXphdol2fKbEEmOL9iPS4wTf8\nP7qobee6AhzOYpnY9hIT3acCNBL+ePRP2UdPCiSInFNsuEM2/H8GadyZe25c\n3c9/2BN5og8Z2eRUHg7VjY8m+dwLQHvqosy+C7Hyj2/ZZTgPzWqKOgrcObcU\nsH9p3Eqhnpy/8FcUV+91DGTdI87ruBZhd8Kpfh7UhG/nw7dWumMDbVkHn+8/\n9qAY66AibIoW6kXaqxSCfUQEbRZnkVz0UeZyrgJ05bVqcGCbk+P+Y4NBz90p\nzaORJ/kax0suYSSLAJ19hZEE/4GktcL9Xf5sGzYbdRiYJE3MseghKxAq3yFg\nC/Stxvz5wg7F1qmwDLlrfLS1RD3Udey0MJzgbtqpFt+LmBrs+rxG9W/Apq95\novuKHKzmMUDZ0ubVV7BJ9Ce913z9g4a1URupeAK+Ij5Tjt2p+G5JUnkiYaEu\n5QLj/MWuGNBNKLaD4RJdy/mKYWcWeqW8LHIiwWVc9/20lo8NYeBQncMdgQhd\n6wX6KlSheZWNoX8Ho8Uq2DNnDAlQIhRp2HCXzGd9MDZjlKzp6ttRkSwaeUUF\ndi3g\r\n=AFpX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"6a64e8d42765bf5ad6900589eedfee3abdcbd325","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsd","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/types/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.14.6","description":"Fastify CORS","directories":{},"_nodeVersion":"12.18.2","dependencies":{"vary":"^1.1.2","fastify-plugin":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.10.7","tsd":"^0.13.1","cors":"^2.8.5","fastify":"^3.0.0","standard":"^14.0.2","typescript":"^3.5.3","@types/node":"^14.0.1","@typescript-eslint/parser":"^3.0.1","@typescript-eslint/eslint-plugin":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_4.1.0_1595146585794_0.231116241039661","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"fastify-cors","version":"5.0.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@5.0.0","maintainers":[{"name":"fox1t","email":"maksim@sinik.it"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"83885f87fec644b5849f5cba9607aa5070803b20","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-5.0.0.tgz","fileCount":17,"integrity":"sha512-r7nQCEewNlwCF98ovNDlG89Et5tpbt+aYNLyTY3l2bwH213ZndKwhgqtlqWsJHOQ5naIRgwgzzkUbHVOYVL3/g==","signatures":[{"sig":"MEUCID+l4zlB3XVXh0mevjzqQ2BGI02aDmBk5plVCXQs79quAiEAvPUGzzYTz0Gkfknf8+6yr6e3USaj94GT66daMqf6/pc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfukhHCRA9TVsSAnZWagAAmVcP/A+TfUSMxZnk0Hf2jjeQ\netJSlkkYeB3UDgzjTq92s0R8Ne1LyHrCZJ2jS50iKnoYLA1xF/SYUR6M/vIC\nSAOje0RiR/gTm+Ymq7qlQNPafoUqzXXUmBRXz5/Ch/LIfdaXOoZQsBdGpCe3\nXTAj/bFruMeg8G+DMkhiTmaw294Dt2zISBQbpmMK3NIotljxdm4xcRhwsy8W\nNEZZIBRmjaQg+sG5XnaB2nHKLrbXGJL+y5qP05uB/SblDGuLsOcNrN1FhKqG\nT5X1U2jJIHxx0twtzzDJ4XwTB9yjkr7PuKe+UO+IZGgdgCvghZ1dwE0tbxEx\nRE3/oc/6H8nOr9WUuBN6eaRnosXpnxR6xI6M65uhce2sSwOvB+CZXt4OGLIx\nzd3pUP+jV0azgOAUZqppQs4Z4qxdaG4UBDoTAPD8FMfF6bm5z5h92B5Ese6E\nEQuZALKNJ6S/azqbMMX1a0V3KrKCDS2b3oN+EroNXMQvp5xmhUN+PTVeoo7E\nMgyhM/whyEh5KIhghipN+po2aRJzY8yqxlBWwPBnS105bXmEvDcS3jlmTTZD\ngQj6Cvucd8YWWfs2zRd6Hw/7gXwfHI7N1DjOBjxJOXIs1DH+ADhWnrdwh26G\nDZk042Ko0x4sPhHdhH3T0fyv+2SRMrLbLJovtTx7++P3riQdVJGuc4cWCAi6\n7StB\r\n=uOYD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"abafaa11762b4581687fc82606ca0afedbb6308b","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap --100 test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsd","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.14.8","description":"Fastify CORS","directories":{},"_nodeVersion":"12.19.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.11.0","tsd":"^0.13.1","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","typescript":"^4.0.2","@types/node":"^14.14.9","@typescript-eslint/parser":"^4.1.1","@typescript-eslint/eslint-plugin":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_5.0.0_1606043718304_0.3281275260257899","host":"s3://npm-registry-packages"}},"5.1.0":{"name":"fastify-cors","version":"5.1.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@5.1.0","maintainers":[{"name":"fox1t","email":"maksim@sinik.it"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"ethan_arrowood","email":"ethan.arrowood@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"f34b11ed0b84fdc212edc2ad38c92ff85f163b8e","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-5.1.0.tgz","fileCount":17,"integrity":"sha512-PTq4wSBFljXmbFKmp5eKW9gg0m488nXBl+OSTb/vnWXXLvVn7HFk7WKgt7uQVfd9UuksveCGTXipVlus3qhmrw==","signatures":[{"sig":"MEQCIGJEKpcmU6pIo6y2NIjWB5ddgRYroqL7wwjcVoDpp3QpAiBxVQHXZLDpbV5rG1CFhNjVY1SAIvvsqqVsO016jbnCwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0M6SCRA9TVsSAnZWagAAwnYP/iOH3XNF0CAXkeoRI4jj\nEDwUXAtd0KLks0u1+OU28e3Wub08Pds0fXKmdccVhnWGkbWIK0K7J1+qZjXb\nUoNNFM9dy8MQhXgk4VJ/o3s3+xCdQuNMAAx24cFSJZA1o4hiqw9JWpDiMZWL\nk0Mg1Ugy41V7rohv9wY13uW59A1Wa2F52i3x8mk6LpIzHzwBTztrYolgqB1e\nkD7JJT7jX9hL0EoJ/ysv07BAdSDRLLNhHpBzZhp92C0OVmRBYfM9Z/RtPuJK\nX575DezqBTHQ+/T6b4k3W0g1JREpytURWYNSXcTmyesYrQ+ZNfBA3vNQY/Fj\nk6eNEykZ9L9OG4z6k/QgUlGqkeT4r0698DaBICQnA0SkNvaQFUfVdIqPaZk4\nFBUGkjGdlKA7/DDKlZ0l36YyU2MhMDvtswL1C+7MOTPypUranNHOyYZdfrS5\nGQiiZr0CuEXPYy+VptQbVz+qScADkWdMXK86n0d/NTgo3McW+/zLslqFnTQU\nv1A2wbSenl4hC/rsUMdi3irPKEYjMj4sE3fNuYif2naeAApgiwAI2VpnWZrc\nY3C0SxOjfX0ZbBXLFAbP4L+3XXWRaXfP6Db/CA9bDM1C+uYZ4GmSH0ybgIJq\nf3L0LOG5bWRo8DprIrF+3RDM+nYSg/YyOLlfEBSRMSXtrGUhYu2jGDDH+4ab\nx6J1\r\n=3gDV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"37e278fd3739a17a51813cf47338fc0f9ae9ea30","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap --100 test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsd","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.14.8","description":"Fastify CORS","directories":{},"_nodeVersion":"12.19.1","dependencies":{"vary":"^1.1.2","fastify-plugin":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.11.0","tsd":"^0.14.0","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","typescript":"^4.0.2","@types/node":"^14.14.9","@typescript-eslint/parser":"^4.1.1","@typescript-eslint/eslint-plugin":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_5.1.0_1607519890294_0.382196131782226","host":"s3://npm-registry-packages"}},"5.2.0":{"name":"fastify-cors","version":"5.2.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@5.2.0","maintainers":[{"name":"airhorns","email":"harry@harry.me"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"salmanm","email":"salmanmitha@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"a92af64d9b7df1cd736c90ecd894a7b23c0cd75a","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-5.2.0.tgz","fileCount":17,"integrity":"sha512-Lde71qT23M3Ip3pmny3uN6q6lQ4J5J0/YWoqe2stL4sMT99R5LEtTJ2La2zijFOR5OFhxvxqGgR7BIc2x3amPg==","signatures":[{"sig":"MEUCIQDkO1PLwYWs3lBvO8zfn+W2153C8gtGGCZBLVlluF5kWAIgYbvT2Ruc1f3RH9sd68zuixfHmoQnBvhUB2qNxTm86P4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54735,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDnYeCRA9TVsSAnZWagAAa4AP/iFvkTwF8QCdwoOfvkqC\ng3DLsl4xK6aA3tShbzE6Ad7mxTGGOZgORCFgJGUBto8vJk50SDdGtfBqb65W\ncj9WQCmMd0KIYshYtqLrBEOuuALUpiJ22X3UEDRX7keWKKparc1vmfIl6s3Z\nVei0jJhdd/fYIyhybgIjOwf7OjK5FuedysC1z2+MJy6gobUR7TV9uSSfVl0P\ni6EzV/B/aeZJR+9KUrfuIE5s9qtiA4igvNw9tdyNWTTcB4gXTrf/Mwjh+VY9\nzyfLaHxqYG/9oHlcbQsG+u7Ba1+rOJxfqXHQVGoqvcuIO3EGMMQKByOjJQZX\nzs2JPGyHpq65QVIdhLDKQl6xLMpcenzFLiIJMhcqtME86Mwz1ENet4+1M0X8\nDjXkav6crP6hiEMoZBfCPj8lPu2sT3hcwZbX1BxvWXFTTLXN8U/RhY2RYw3y\nGHJEl4PnGGdaZrcQxORH8ufFqsvPUK4Ug+lGmhs6tQuc5BpCfVwrjP4uTpAJ\nk4Gr8J60boCmBkytM4o8ymM1TbaLclJ3nJ5JqYz2zYnNrhQGsrpk/kqVp5jm\nf2cSx6jYEOJ/QkzHIZ0pRf3jDHRGnGUueUzcHNY5jUmxOk+QA3I3chw5N5aI\nLBrbCDNqykmS7YIdmugSQcoz+J6e4S4iJeHUMsxEAxKXacUvYrwQVUflRvMK\ngRob\r\n=H497\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"3f38eb73a0ed8e6362509a798cc5f45beb78b23a","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap --100 test/*.test.js","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsd","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.14.10","description":"Fastify CORS","directories":{},"_nodeVersion":"14.15.4","dependencies":{"vary":"^1.1.2","fastify-plugin":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.11.0","tsd":"^0.14.0","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","typescript":"^4.0.2","@types/node":"^14.14.9","@typescript-eslint/parser":"^4.1.1","@typescript-eslint/eslint-plugin":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_5.2.0_1611560477623_0.45229129434228943","host":"s3://npm-registry-packages"}},"6.0.0":{"name":"fastify-cors","version":"6.0.0","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@6.0.0","maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"airhorns","email":"harry@harry.me"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"salmanm","email":"salmanmitha@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"59764802f7260898f0ae4f9f1aa626d5e1c16a8b","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-6.0.0.tgz","fileCount":17,"integrity":"sha512-OIvNV3EJsE0vnKkn9GIgAQiimSrc6raKTq8YBtEt8XZ4KyPyAZ6BdKDxpjPLQBQfZLgqGgcThCea53AWqI2DgA==","signatures":[{"sig":"MEUCIQDLVk5XOtqinKHMKqDdIgHcM9meXbieFmEmsocdn3acdgIgLeaLM6Mc0OoWMeZR9baPyvihkT1fBMqytevBQEaZHbM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJginSHCRA9TVsSAnZWagAAiuwP/0axJmXePq8rm+DcYf39\npg/36iQa6GVBzoiCARqMMLsGcAbwC6sOdWEz5hLYbVPDvGDr/MJwCzATHPNq\nRZGDMrCrxgI5KqUBq+Z+xcYapxWD7VbSgo41HWSasO6K62MJMTLxBRYDLs7X\n85sPxvUmXYq1p6QZvoLUm9UkE3HgFMKuF7EBaPPWaX295zg+5p2ObLb2MPX2\nxKBEt2XLPyD9ooFdKAUZhH0YQcEqCILaK8yuGAOdzCsmDqoWvlQjmMfXtyW8\nalluPh/DJ8PadeKWwJaOHjRbH5qeRK3VivcNKZFlZXvcEhEbvWXAMT3PAI/V\n9yXdVrMpvFeRdy91Hz+RrsbWv7PvAO6A86P5SdntugcCRy0cXBPNCxrdlZ1E\nlTN97YqGRwN/RfBGrC4XtjeU0gTmrD0MN6nh7nfExg/TyL3BQJcFuqOGWGep\nwY+NsS9lNO09S3IfZxCE8ZOuh0erbXCXF1oDWZV5yXzEm/2E5XYgQMrNeP0v\nGb2jYH5/RnYBKs9nGx+HaDqgAnJr+CHCL2H/LUtB10CdCdmErVBmoMmjQEsW\nai6K0PYkXUWKzTfbQw344Qca/JJKS2DN6wlfC3S5iGPaUIOoKLNYdxiHDUMz\nnMsVpjil8uZIQQ1/gPNWriDDz32JYqkcQedFJX+S1CKstapM0eQXknHH6G3p\nG0T5\r\n=s8ep\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"fe1b50b556332352197b3cc33f526025d058c72d","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","test:ci":"npm run lint && tap test/*.test.js --coverage-report=lcovonly && npm run typescript","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsd","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.14.13","description":"Fastify CORS","directories":{},"_nodeVersion":"14.16.1","dependencies":{"vary":"^1.1.2","fastify-plugin":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.2","tsd":"^0.14.0","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","typescript":"^4.0.2","@types/node":"^15.0.0","@typescript-eslint/parser":"^4.1.1","@typescript-eslint/eslint-plugin":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_6.0.0_1619686534605_0.9551849983611054","host":"s3://npm-registry-packages"}},"6.0.1":{"name":"fastify-cors","version":"6.0.1","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@6.0.1","maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"airhorns","email":"harry@harry.me"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"salmanm","email":"salmanmitha@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"300e0f1cbeedda19d9de284e9cf05c65842c182b","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-6.0.1.tgz","fileCount":17,"integrity":"sha512-eeNTdQNmBsqHL87we+X74n9+H0hTDX0cXGVdyZjGf9om2pZfigAZwuSxaUUE2pLP9tp5+rEd5kejKQ8+ZCvAoA==","signatures":[{"sig":"MEUCIQD88U+WGRhGxFSpEIFo83AFmY//fdSlUJMutHHvB/5lmQIgUDeosVRMy17yWkTYVHEBatDxqH27BhRh7hMP2QS825E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglRC/CRA9TVsSAnZWagAACzMP/iMxa5GPO54/nmV9AQ8k\nBB13b4VibLmyugE+t7F5oENpR1K0k3yTJuI/4Qg4Pqvbg/ACzd+z6SHvjbIq\nBu9HlHYSLfTFEn6r77OavD019v4jMslpgv0i4+0DPYTxi4y97mlkk9k6ykva\nS63WirqVFaD0/gNBrKp/3Yh7ZKHkH717QpyW/m5UTKtunPzh70RyldNcfMg+\n7oSPWlkVtVlh4jejWgOOfPzFvyKBgqHb+X0ROtQnGDhTb20vF0pe3F1G6RWt\n3p/0WJlHF+TWQk+3wrvPyLOG78h+f2CYGrp+1pneU4dCj8BwXZoc2dF4GFBp\nxScePY2WBkQVvx+tgAclTnnimp7cuf50jtslBg1yezsF5griRIqbXGge0Xam\nFkLFZ1VBziqVG6VWpweAdbBXslPvwIfVfEAbM3MNUCu6/168ZJ95EcoNHjuG\n5LlCAB/KMtu6ucaqQTnH1yPB/cIWJDxVXKJJoqpX/eZIdrg2519kLKVqfmsm\n0qPKzbO01aP73Fg1PhNgzspwRPBvWEW4bQ5io8RREnGYdbG6Vh08PInrZb8b\nQ93AG6OO2phyJp7M5JeIXtEnGTpJabd/l5G+QfFSHJ/p7+DdZD21GTdOobv6\nFb25Wt6Np4Kyf0Oa3pydwSkd5wzVGdr9PukE7x8ktNh7ckc6VHwTlOgpgMwf\nWMvI\r\n=nQI0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"42d3bf4c73dcd780607a48023be4e03f0a38f35e","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","test:ci":"npm run lint && tap test/*.test.js --coverage-report=lcovonly && npm run typescript","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsd","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.14.11","description":"Fastify CORS","directories":{},"_nodeVersion":"14.16.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.2","tsd":"^0.14.0","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","typescript":"^4.0.2","@types/node":"^15.0.0","@typescript-eslint/parser":"^4.1.1","@typescript-eslint/eslint-plugin":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_6.0.1_1620381887057_0.28469285401682387","host":"s3://npm-registry-packages"}},"6.0.2":{"name":"fastify-cors","version":"6.0.2","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@6.0.2","maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"airhorns","email":"harry@harry.me"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"salmanm","email":"salmanmitha@gmail.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"4fd5102549659e9b34d252fd7ee607b63d021390","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-6.0.2.tgz","fileCount":17,"integrity":"sha512-sE0AOyzmj5hLLRRVgenjA6G2iOGX35/1S3QGYB9rr9TXelMZB3lFrXy4CzwYVOMiujJeMiLgO4J7eRm8sQSv8Q==","signatures":[{"sig":"MEYCIQD4REKATTDlH4PDKpI5pA0WJmgVF/kd9RYu14PkQNcoOgIhAINkpUIEYQEzoxkiHzGTwSf1NN+3O6KXcjchU9EPPdwN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7peKCRA9TVsSAnZWagAA08YP/i8GGCjR6RJn9NonmVYk\nheJT5fN7h3G+V9YAWhe1A78gvIKahotSxa0cP4UDk95YrIUiSeMgSk3wNViK\nxcW2fi3myzP4w0A6Xb2XsDhjG9kfDkCEmGMv8Gb96/zcx1/E1PKrrXuJtSii\neK3ZFHlRITd2eUDNhndq+OVCMqFnz731+6cdYKrPZLIoaDEel/lIzEpbpSRs\nwrK95Ndl0xFLJ5y6HJVfEQujcmEnrHzsjUgQ3FeT9iW631FPtkRdqKV7J69k\nbq4wbRR26Y3fsrpqwBXXw5WUvRmVkDo46689SZz1rRHk9R/QRx0J2v4TR5FK\nf48VALpQ1WyQGljgPJFffgveNj/E1XJysz3AYuNCmBtepK75QMLLfP79+1MP\niliY7cCa5hUAGTd/hKNFWCstT4RNGD5aUIRBR3f4FPYy7yeQpaCRI51TmBnE\nVAKhItVt9OUu3Vwv8aduV2OuuKJMQLRjOArTBMQW62qV9EuperuqxBq4NpS7\n/B/9avcA9zf/jsvsGoNZirMDwubiBhvbMK0Tag9lVcuAJjzBLrdeqUVliIL1\nAhYI5dd6+7oVd8ALhCKGVu/aQm6kjUeKQdc5eB3T5Mj6gYq5sAz89Qo5GsSE\nkQTXzlXozwU2QBZaCBAtut8TB5a5RVoNrsdtPaN38zGv6ElgfBwy9heKv36q\n1ch4\r\n=f3Jn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"da51cc34b490885c0de8c28a60aaaa56cc384b11","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","test:ci":"npm run lint && tap test/*.test.js --coverage-report=lcovonly && npm run typescript","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsd","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"6.14.13","description":"Fastify CORS","directories":{},"_nodeVersion":"14.17.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.2","tsd":"^0.17.0","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","typescript":"^4.0.2","@types/node":"^16.0.0","@typescript-eslint/parser":"^4.1.1","@typescript-eslint/eslint-plugin":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_6.0.2_1626249098308_0.5795890380164557","host":"s3://npm-registry-packages"}},"6.0.3":{"name":"fastify-cors","version":"6.0.3","keywords":["fastify","cors","headers","access","control"],"author":{"url":"http://delved.org","name":"Tomas Della Vedova - @delvedor"},"license":"MIT","_id":"fastify-cors@6.0.3","maintainers":[{"name":"coopflow","email":"community@coopflow.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"salmanm","email":"salmanmitha@gmail.com"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"airhorns","email":"harry@harry.me"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"}],"homepage":"https://github.com/fastify/fastify-cors#readme","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"1907f92c3f855a18ef6fb6213186c73cf0bbf9e4","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-6.0.3.tgz","fileCount":17,"integrity":"sha512-fMbXubKKyBHHCfSBtsCi3+7VyVRdhJQmGes5gM+eGKkRErCdm0NaYO0ozd31BQBL1ycoTIjbqOZhJo4RTF/Vlg==","signatures":[{"sig":"MEUCIEZOJVCs+deTaVre4CHEmopWHQg6e3/+lqwuA6VSrVs5AiEAlfh8xLPMkoq0WAv33gy73Y2J3RD9QHU+6gYpFm45sEQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56792,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFem1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTJA/+Oeh0/IVVZPY4YfUH1h2p3NsDMw86vcTcCsQ+0eYxbKctMij0\r\nuxvMyD4r0RCRdlbKDF935G2PVwx4bDpMFkqC4hi337mNVk1XpFv6vPhWy1fG\r\nTW4mL+faF7nI3UTlrmqDILHgjY77t+oKuUO+TbSsSF14SnnOFB39AL565PCE\r\nse8GHUdzBqh05VfDHO+eqJsYJ2VW/k+EJSBxOk4/CqZvDMM2fog9N6cGn4qE\r\nfvKl/AIFxBIzw4uuLxYox0ZgjMcaRNFjaYUmN8srTY4m8k9NNQH33WUJul8i\r\n/EX1ZWWCX5jn+gaYUZuvAyX65YaqGxVeKAwMEbNBsmKANWA6tBXAdVx0bs1Y\r\ns1kp/p11765K4V/1phofkAUvbvokTnTy1smZMwYRiXpU1xEZQIpv4ezSx4WK\r\n6vfw+9cnfILCb8tv7wMn+3jy2IHuuqvC4ITlZdItI/ZMYHifMFRtHG9QLC5D\r\nSxXHhgTs8eRVIiLAaag+wZ0eWBq4TfEIST/xlW0PsEon+NMU1bTldBqK7ZDG\r\n1qGIvgkM0gNr+cdrqf2VwoUiMrpJD5a/px2NTSN3WGIetaQROct017RYgTJi\r\ndnTkB9QAvjRtdj1Fuszqp8ZWvLceVB66Zn5vqVLy1/EvdqW3VOTBlmkhRXC5\r\nHlgYBR8foKo5cv/YCmyJz62jVVZl4QH2S8Y=\r\n=Y5dr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"899c8d2cc5572bec325d99e828739e8dc03b6c90","scripts":{"lint":"npm run lint:standard && npm run lint:typescript","test":"npm run lint && npm run unit && npm run typescript","unit":"tap test/*.test.js","test:ci":"npm run lint && tap test/*.test.js --coverage-report=lcovonly && npm run typescript","coverage":"tap --cov --coverage-report=html test","lint:fix":"standard --fix","typescript":"tsd","lint:standard":"standard","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts"},"_npmUser":{"name":"zekth","email":"vince.legoff@gmail.com"},"repository":{"url":"git+https://github.com/fastify/fastify-cors.git","type":"git"},"_npmVersion":"8.1.0","description":"Fastify CORS","directories":{},"_nodeVersion":"16.12.0","dependencies":{"vary":"^1.1.2","fastify-plugin":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.2","tsd":"^0.19.0","cors":"^2.8.5","fastify":"^3.8.0","standard":"^16.0.2","typescript":"^4.0.2","@types/node":"^17.0.0","@typescript-eslint/parser":"^5.12.1","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_6.0.3_1645603253092_0.5753221937909618","host":"s3://npm-registry-packages"}},"6.1.0":{"name":"fastify-cors","version":"6.1.0","license":"MIT","_id":"fastify-cors@6.1.0","maintainers":[{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"coopflow","email":"community@coopflow.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"airhorns","email":"harry@harry.me"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"}],"homepage":"https://github.com/fastify/fastify-cors","bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"dist":{"shasum":"b47bd7faf29113a884e59413ee198a9c323cf180","tarball":"https://registry.npmjs.org/fastify-cors/-/fastify-cors-6.1.0.tgz","fileCount":3,"integrity":"sha512-QBKz32IoY/iuT74CunRY1XOSpjSTIOh9E3FxulXIBhd0D2vdgG0kDvy0eG6HA/88sRfWHeba43LkGEXPz0Rh8g==","signatures":[{"sig":"MEQCIAUopiDyaVefjITpsdkt473KBUGsjjlXXh3g94KOk9U7AiBQlLBO/ENdmO/JW0hNkP9S6+9tQSbO5nJmmlxcp5T7SA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaULfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpcrg//Udd0jXmvUBO+q3qJu3ff+j5NUk1inWDA1kAZpA8YxwavqJTP\r\n14JPH7CWEOyATqziafpmgF9oulb5xLIVfrhkHOU5VkD1q1p9O+yIfWh5BgN9\r\nkY9EGxQmfQ4J8oI/o4oUcMys9fzwepuognKAoco/1ztoCNBWHFJTL7kfVSoi\r\ns1Ul8tsgJpSNbg7qcxTJG9CdDbN4EU1trUFhno3aeklC03jc1qk7sfh9m55c\r\nEX3/Pg9fR0dVjUlWwvPY9cvK8CaA0/srovE8FUpsnjIOeirf5bHejpWeg9My\r\nNUbwfPE/uwsnWfCBumBhCRgUbg+rxRTXX5JCl1KVgCEV/rk6fiMcKIrMiuUt\r\nkBW9VAmb0/dq9Zg9CPPM974ynK50CX14mmYgwwE1i7qxXgTZaT8v5/hSNK9h\r\n3OwlOTxddXodTPbmSY+jPmpFfB3d3hC4xdZNZjGheTOH9YmHq2llpVN0vj8P\r\nFrlYKO2NBRpBa3tcxFgopM/pb8Q8cpF3ACpZ0jXeQ3oeFucts0UKqKC8tmuW\r\ns2CQ2N3CVhPiFYAsW9Mo3udbuP8YbHpBPz1pYTjgOcU5ILZx0PC+U3j8uGkO\r\nOgmZoSnh/S2TxBYhYtLrS5P4OSUfPFeLR1G68aSHF5TZLRVYgx66uzi9y+Hx\r\nwZHk1wZyeYu7mxg5cdvqOCQn5vmFqcyaw+M=\r\n=nRwe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"b3da246e2eb1f71aaebaeb5f24c6876dabf0d3a8","_npmUser":{"name":"jsumners","email":"james.sumners@gmail.com"},"deprecated":"Please use @fastify/cors@7.0.0 instead","repository":{"url":"git://github.com/fastify/fastify-cors.git"},"_npmVersion":"8.5.5","description":"`fastify-cors@6.1.0` has been deprecated. Please use `@fastify/cors@7.0.0` instead.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"process-warning":"^1.0.0","fastify-cors-deprecated":"npm:fastify-cors@6.0.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fastify-cors_6.1.0_1651065567201_0.824627802824661","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-08-11T14:13:36.391Z","modified":"2026-08-02T10:03:52.338Z","0.0.1":"2018-08-11T14:13:36.508Z","0.1.0":"2018-08-15T12:59:41.675Z","0.2.0":"2018-10-23T19:26:55.088Z","1.0.0":"2018-12-21T01:21:12.092Z","2.0.0":"2018-12-21T01:29:48.989Z","2.0.1":"2019-01-14T06:59:08.406Z","2.1.0":"2019-02-08T01:16:59.234Z","2.1.1":"2019-02-14T16:42:38.009Z","2.1.2":"2019-02-26T16:30:10.979Z","1.0.1":"2019-02-26T17:19:45.249Z","2.1.3":"2019-05-01T18:31:50.583Z","2.2.0":"2019-11-10T22:24:23.515Z","3.0.0":"2019-11-22T21:55:44.118Z","3.0.1":"2020-01-05T06:57:54.350Z","3.0.2":"2020-02-18T20:43:07.360Z","3.0.3":"2020-03-28T14:49:53.342Z","4.0.0":"2020-05-05T11:03:21.738Z","4.1.0":"2020-07-19T08:16:25.953Z","5.0.0":"2020-11-22T11:15:18.432Z","5.1.0":"2020-12-09T13:18:10.431Z","5.2.0":"2021-01-25T07:41:17.855Z","6.0.0":"2021-04-29T08:55:34.760Z","6.0.1":"2021-05-07T10:04:47.327Z","6.0.2":"2021-07-14T07:51:38.432Z","6.0.3":"2022-02-23T08:00:53.254Z","6.1.0":"2022-04-27T13:19:27.355Z"},"bugs":{"url":"https://github.com/fastify/fastify-cors/issues"},"license":"MIT","homepage":"https://github.com/fastify/fastify-cors","repository":{"url":"git://github.com/fastify/fastify-cors.git"},"description":"`fastify-cors@6.1.0` has been deprecated. Please use `@fastify/cors@7.0.0` instead.","maintainers":[{"email":"tommydelved@gmail.com","name":"delvedor"}],"readme":"# fastify-cors\n\n`fastify-cors@6.1.0` has been deprecated. Please use\n`@fastify/cors@7.0.0` instead.\n","readmeFilename":"README.md"}