{"_id":"local-cors-proxy","_rev":"5-f6e7e1e5125e67f08383a75a6ac9c2ec","name":"local-cors-proxy","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"local-cors-proxy","version":"1.0.0","main":"./lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"lcp":"./bin/lcp.js"},"preferGlobal":true,"author":{"name":"Gary Meehan"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/garmeeh/local-cors-proxy.git"},"keywords":["cors","proxy","simple","node","express"],"bugs":{"url":"https://github.com/garmeeh/local-cors-proxy/issues"},"homepage":"https://github.com/garmeeh/local-cors-proxy#readme","dependencies":{"command-line-args":"^5.0.2","cors":"^2.8.4","express":"^4.16.3","request":"^2.85.0"},"gitHead":"9e9ee7977791b5f9ad1278316fdaf83436628ae5","description":"Simple proxy to bypass CORS issues.","_id":"local-cors-proxy@1.0.0","_npmVersion":"5.7.1","_nodeVersion":"8.7.0","_npmUser":{"name":"garymeehan","email":"garymeehan@outlook.com"},"dist":{"integrity":"sha512-X6i5i10ifSt4p5oIGOrKahBhXzvHpu5Pr3EicSknCWkea/+X0EWGJedCe+kQaOkWKQKQR0yL4rV8M/wsVvSNwg==","shasum":"9e354eb57099fa904a75a72c93f87eca9ce0009b","tarball":"https://registry.npmjs.org/local-cors-proxy/-/local-cors-proxy-1.0.0.tgz","fileCount":5,"unpackedSize":22918,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTmRh0B50wRvF870idsAAyM4+kJ1gwqi2LCOVmGixgJgIgJhu4RDUWleyRqAJ8O2J5VFEei0MAthGH50pVruHpD6k="}]},"maintainers":[{"name":"garymeehan","email":"garymeehan@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-cors-proxy_1.0.0_1521579938161_0.05427222626851802"},"_hasShrinkwrap":false},"1.0.1":{"name":"local-cors-proxy","version":"1.0.1","main":"./lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"lcp":"./bin/lcp.js"},"author":{"name":"Gary Meehan"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/garmeeh/local-cors-proxy.git"},"keywords":["cors","proxy","simple","node","express"],"bugs":{"url":"https://github.com/garmeeh/local-cors-proxy/issues"},"homepage":"https://github.com/garmeeh/local-cors-proxy#readme","dependencies":{"command-line-args":"^5.0.2","cors":"^2.8.4","express":"^4.16.3","request":"^2.85.0"},"gitHead":"3395511ef9cd3631cacc8020b153a3fb748dd31e","description":"Simple proxy to bypass CORS issues. This was built as a local dev only solution to enable prototyping against existing APIs without having to worry about CORS.","_id":"local-cors-proxy@1.0.1","_npmVersion":"5.7.1","_nodeVersion":"8.7.0","_npmUser":{"name":"garymeehan","email":"garymeehan@outlook.com"},"dist":{"integrity":"sha512-Wl5e2vzl4t1YPzVzUgIJC5io3qM2KZT2l6SRk+W5l8VYy/5LxiNmlU7ED/KAhCCCotuvbdRWUCzkLrXKSAHCsQ==","shasum":"2fcf6ff79e9b26818938ad300c0413e3b6081a35","tarball":"https://registry.npmjs.org/local-cors-proxy/-/local-cors-proxy-1.0.1.tgz","fileCount":6,"unpackedSize":25136,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFM5zEX6qfCq27ISGOW75fgaFlB9WGDRmhQkZy9D53woAiEAq7fZZb2785N9Ck+f8NrO3FkveZLqEz1z6AFulcpf6oU="}]},"maintainers":[{"name":"garymeehan","email":"garymeehan@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-cors-proxy_1.0.1_1521581321914_0.5698655686781775"},"_hasShrinkwrap":false},"1.0.2":{"name":"local-cors-proxy","version":"1.0.2","main":"./lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"lcp":"./bin/lcp.js"},"author":{"name":"Gary Meehan"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/garmeeh/local-cors-proxy.git"},"keywords":["cors","proxy","simple","node","express"],"bugs":{"url":"https://github.com/garmeeh/local-cors-proxy/issues"},"homepage":"https://github.com/garmeeh/local-cors-proxy#readme","dependencies":{"chalk":"^2.3.2","command-line-args":"^5.0.2","cors":"^2.8.4","express":"^4.16.3","request":"^2.85.0"},"gitHead":"a80eb41fe6b002ee96d8ef88cd36ae477dd9f9fd","description":"Simple proxy to bypass CORS issues. This was built as a local dev only solution to enable prototyping against existing APIs without having to worry about CORS.","_id":"local-cors-proxy@1.0.2","_npmVersion":"5.7.1","_nodeVersion":"8.7.0","_npmUser":{"name":"garymeehan","email":"garymeehan@outlook.com"},"dist":{"integrity":"sha512-RzeRwgfy5gL8XWveYuUZT6SPHhhx6R0Gn5yuQLMKbjO3XUb7TEOob6yiZJn+dGetxdNhjcS05oxQkwdFPW3FrA==","shasum":"e9e3555a237edffba7b6294cc356456e8330ec74","tarball":"https://registry.npmjs.org/local-cors-proxy/-/local-cors-proxy-1.0.2.tgz","fileCount":6,"unpackedSize":27290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGUQCcF5Ztm6nWz2Z8SzncDvl4c3i3zXc+NXhOQp1d1pAiEA+nlSR4BSohwuMuI3E895To/4kg9OVlyPPLYlvk6Ov64="}]},"maintainers":[{"name":"garymeehan","email":"garymeehan@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-cors-proxy_1.0.2_1521662928147_0.5397088250115034"},"_hasShrinkwrap":false},"1.1.0":{"name":"local-cors-proxy","version":"1.1.0","main":"./lib/index.js","scripts":{"start":"node ./bin/lcp.js","test":"echo \"No tests specified\" && exit 0"},"bin":{"lcp":"bin/lcp.js"},"author":{"name":"Gary Meehan"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/garmeeh/local-cors-proxy.git"},"keywords":["cors","proxy","simple","node","express"],"bugs":{"url":"https://github.com/garmeeh/local-cors-proxy/issues"},"homepage":"https://github.com/garmeeh/local-cors-proxy#readme","dependencies":{"chalk":"^2.3.2","command-line-args":"^5.0.2","cors":"^2.8.4","express":"^4.16.3","request":"^2.85.0"},"description":"Simple proxy to bypass CORS issues. This was built as a local dev only solution to enable prototyping against existing APIs without having to worry about CORS.","licenseText":"MIT License\n\nCopyright (c) 2018 Gary Meehan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"local-cors-proxy@1.1.0","dist":{"shasum":"570a0abb19ba102ddccd3113e92fbf44cb075756","integrity":"sha512-1UVrdG10HAT58TNZBhYSeMPkwQANuJunFsWBgEYOd1RChLDHGhvNPjUT8JsOlcqoJyr0QOH9cLx9IOLATf4j5w==","tarball":"https://registry.npmjs.org/local-cors-proxy/-/local-cors-proxy-1.1.0.tgz","fileCount":8,"unpackedSize":6098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRFpzCRA9TVsSAnZWagAAtN0QAJZFOTUg9Nv3lw9K932y\n7l4bQcKNCNZzINyumLEa1Sjin92j/Hh3pPXu8q5wLCqeWKDnMlPk+C35ptla\naF3Q01FQ8yyGWpRzVfAynI2b+lCscFPS0gApvZLsFIP+rO8U6F8b8zP7egLk\nJRj+BU3wu18SSiTyR6uSTGBulyNg+oGTo+H2QIp4cGPEyAcNuVU3PS85K7ps\nIFiBVFZJhcb/lJUccGFjyy1FAfOi97GqC1RE0c44n8ysxSh+luMgwoybqpB4\nlL4SvpUP+SJuzIkUFxUO4yQKby5XCrlGZ1OzG0Rq5IKTUUiVX4n9qAeBaVNz\nYE+u1f4/wHMjwwlmUhQWe5cRB2e4HBsO0eirEFOk4MIYxsSU4ATFGRFdxjWx\ncIRdzEo1ppawai8lqHP4WFIM7dBTU7HvSjXtsnzXsTEi17cOopHkflye2aIX\nV2gnQCor6DyU1eiOQHRlOJ79HVI141cvmX/7FJaNmjSOKBphwe4vjO79vZmJ\n5+SyXVgsAusoNOQbpKwi+elH0TpQ2+I3DoRTcEtOFk2SUBSWoptShL0ZFAi5\nJHgPMyCO0VL/+spO5yjjiyGKXGg/FlEyFK4hB2GYTXPI22z02Ru+xTjsuTcP\nomiCylsUbx83/0lhxRrgJYkQM8xJnOpRPUVEe9xPSQnFYjxf4kLQzXE113c5\nb0M/\r\n=hscY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfv74RrUfSn271fYeYcL3JwR2JA7wKBLU9gjp+FK7eLAiEAnpDFv2MrI9LxHpTkQ6qVv51CKveRWEJHi1R8Rt3WK84="}]},"maintainers":[{"name":"garymeehan","email":"garymeehan@outlook.com"}],"_npmUser":{"name":"garymeehan","email":"garymeehan@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-cors-proxy_1.1.0_1581537907396_0.9863044867838624"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-20T21:05:38.161Z","1.0.0":"2018-03-20T21:05:38.228Z","modified":"2022-05-08T07:15:42.194Z","1.0.1":"2018-03-20T21:28:42.017Z","1.0.2":"2018-03-21T20:08:48.200Z","1.1.0":"2020-02-12T20:05:07.536Z"},"maintainers":[{"name":"garymeehan","email":"garymeehan@outlook.com"}],"description":"Simple proxy to bypass CORS issues. This was built as a local dev only solution to enable prototyping against existing APIs without having to worry about CORS.","homepage":"https://github.com/garmeeh/local-cors-proxy#readme","keywords":["cors","proxy","simple","node","express"],"repository":{"type":"git","url":"git+https://github.com/garmeeh/local-cors-proxy.git"},"author":{"name":"Gary Meehan"},"bugs":{"url":"https://github.com/garmeeh/local-cors-proxy/issues"},"license":"MIT","readme":"# Local CORS Proxy\n\nSimple proxy to bypass CORS issues. This was built as a local dev only solution to enable prototyping against existing APIs without having to worry about CORS.\n\nThis module was built to solve the issue of getting this error:\n\n```\nNo 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disable\n```\n\n## Getting Started\n\n```\nnpm install -g local-cors-proxy\n```\n\n**Simple Example**\n\nAPI endpoint that we want to request that has CORS issues:\n\n```\nhttps://www.yourdomain.ie/movies/list\n```\n\nStart Proxy:\n\n```\nlcp --proxyUrl https://www.yourdomain.ie\n```\n\nThen in your client code, new API endpoint:\n\n```\nhttp://localhost:8010/proxy/movies/list\n```\n\nEnd result will be a request to `https://www.yourdomain.ie/movies/list` without the CORS issues!\n\nAlternatively you can install the package locally and add a script to your project:\n\n```json\n \"scripts\": {\n   \"proxy\": \"lcp --proxyUrl https://www.yourdomain.ie\"\n }\n```\n\n## Options\n\n| Option         | Example               | Default |\n| -------------- | --------------------- | ------: |\n| --proxyUrl     | https://www.google.ie |         |\n| --proxyPartial | foo                   |   proxy |\n| --port         | 8010                  |    8010 |\n| --credentials  | (no value needed)     |   false |\n| --origin       | http://localhost:4200 |       * |\n","readmeFilename":"README.md"}