{"_id":"@agent250691/proxy-https","_rev":"1-cb36ead0fb5671f9bd84b243c0e66ad7","name":"@agent250691/proxy-https","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@agent250691/proxy-https","version":"1.0.0","description":"Simple proxy with https","main":"./lib/index.js","bin":{"proxy-https":"bin/lcp.js"},"dependencies":{"chalk":"^2.3.2","command-line-args":"^5.0.2","cors":"^2.8.4","express":"^4.17.1","request":"^2.85.0"},"directories":{"lib":"lib"},"scripts":{"start":"node ./bin/lcp.js","test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"@agent250691/proxy-https@1.0.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-VuwDitopx2TQ8wI7G+DJRMrfeQDFEMtm2H3tjtPN8JApYP9RDCrJlGPW5A/vKg0uqd1WBiKG6qFxKvgXoBcI9g==","shasum":"0812a8facf911f5c3a30f5d8ffe7c0ffcbe199ca","tarball":"https://registry.npmjs.org/@agent250691/proxy-https/-/proxy-https-1.0.0.tgz","fileCount":7,"unpackedSize":9353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk8zNCRA9TVsSAnZWagAAHJQP/1KBZMOBWJlUagcyImzb\nfw50g75daNv0g30DrgLmxyKza4FTIQS40SMEeu7RqeysEDIPktcc1alMSNd8\nOYqY9C1v4OBuZBf/j1/Fbz0PGfu6xHIo4vUOXKQJX5sjawBTCIilPdcwh3R4\nGdIck8SoufzOHIUJDBS+dC2pCq4DgFNUT6azfuzyu80dO8xiYLVhbwTSWca+\nXkH2V3P4OmmA91g4zcKB5KdCIIkPkaXZeRKEXY+cQlzjjehDTKKO/SlzOxSb\ngVo4CJcNVgci0pujHlg763TTvPptAIFrKAQ/PadhwMZui3P3RhaKzdoAu3SD\n7Z+/gRqcjS2Jx2YZ5IDCZJnpnP1hQp6d7/nfzYCI7hAljShd5OM3sKWDSXdu\ndh2wyZtqwkMEifp0n6C3mDLhqOHUmuDW4BMfV5bJrV2CIvz1l1z7+MFBjDWc\neVuOno5E2I81A8NNiCyMaEc15OzX2+arqm7Gm39wP7xNbgk/Xu2cyt4ct64b\nR/qxSkr+aAlZFSuAsr41hVsZ/mAGhR8JFpWOMp3P6iP9UlCiDBxF/0zUqyOx\ncZgEn+1rryw4MzFzQLwPGYdb3uRcuOAPntfLW54KSMo1cbaco9TqwFi48/q2\nFgmQjxm61nWqq6vQaHxlYyxzYp/eS3KhUSp8j14vUJ3CG3z5br/+E2T11zLM\n6b3c\r\n=R2zX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKttMhX7eMCXofjuWIw0MpFz/sD9u+uw+hgK0eiUr1IAiEAkGaVwnNZ18VhBYF4AkUFN2a94h8deLTHlWBkDqD7JmU="}]},"_npmUser":{"name":"agent250691","email":"agent250691@yandex.ru"},"maintainers":[{"name":"agent250691","email":"agent250691@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/proxy-https_1.0.0_1637076172992_0.264595723956514"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-16T15:22:52.948Z","1.0.0":"2021-11-16T15:22:53.172Z","modified":"2022-04-04T11:55:57.483Z"},"maintainers":[{"name":"agent250691","email":"agent250691@yandex.ru"}],"description":"Simple proxy with https","license":"ISC","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"}