{"_id":"@bjesuiter/local-cors-proxy","_rev":"2-75569aac86de4181a066d4e38e78edc2","name":"@bjesuiter/local-cors-proxy","dist-tags":{"latest":"1.1.1-BETA.2"},"versions":{"1.1.1-BETA.1":{"name":"@bjesuiter/local-cors-proxy","version":"1.1.1-BETA.1","main":"./lib/index.js","scripts":{"start":"node ./bin/lcp.js","publish":"npm publish --access public","test":"echo \"No tests specified\" && exit 0"},"bin":{"lcp":"bin/lcp.js"},"author":{"name":"Benjamin Jesuiter, forked from 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":{"axios":"^0.21.1","chalk":"^2.3.2","command-line-args":"^5.0.2","cors":"^2.8.4","express":"^4.16.3","request":"^2.85.0"},"devDependencies":{"prettier":"^2.2.1"},"gitHead":"60155448cb84ab220e67ecf753540536a1cdefad","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":"@bjesuiter/local-cors-proxy@1.1.1-BETA.1","_nodeVersion":"14.15.0","_npmVersion":"7.5.3","dist":{"integrity":"sha512-c8fW9J2Wi2/czqAAsd0sGrgjESZQkYWHqmldyUgHWXcrqsIXrbMUk4F1p7Ou+bP/vxyW/M8pbHkCcd+icUFEgQ==","shasum":"ff661d55c9a21a0956b2771f40beaa0bd28962ba","tarball":"https://registry.npmjs.org/@bjesuiter/local-cors-proxy/-/local-cors-proxy-1.1.1-BETA.1.tgz","fileCount":5,"unpackedSize":6399,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKuH2CRA9TVsSAnZWagAAn2kP+gKOFtHrhM8SDtCPCtFE\njeYjH8oFJ+MWfai6mz7zBF7KhaGkF8ZWfObJu9mwvwfjInZb0UTwPcRuzyZF\nma3ger0r9osr7p0dEGbpq7lXQ5KOSBiefUJrCmNoP/mQCqRl4JgwpNGBDNBr\nKTvtyZbwOOMahcvsRjTJJAtymXEIF8ywHduaolZP+fCC4coTQGEiKddhwTmr\nxQRv2UieSo5AekV3vcFuF90TblgHt+JKT+VjZRm/DGZ4/5409JMEYb4TtqlT\nrRSBuZp19VJg+isSF6Um3Q83KSX0yDAG0luMj6yvGNfj1WSvLkB3g5igUBj5\n9WZY5HgUiRHkiLNdAmR5owbi/ESPBTnep0sU4dt6labq5kEeh6MBt7PZFk98\nkAUPM7HwNQcYqYS7nRKHw6g6O9aTyI2yxGoHEXhrdsWbFJaHudXEgGUC0j75\nwgdTOV9hIIJGNlgYGjftJ1gJplX72m/PX5gpz3u5H08XYqMKybiZUwbXKvSn\naZED1kOIjVTyneTwuXaskATrqEz9i5N8gQnzuoGB8h/jbtbkUN778yD82Egu\nrMxoHq2lbJJYdjXpeKmXUUiy3q6tm74yiSjQMF60wBB8NFd6kmT2BIZ3H/1o\nSn++/Jq5239z0aYSC/oh3Ip/sIiNQUMC6moiwkd8Zloeb4ZPDNGdU7WAoHhr\n5b03\r\n=Ydo9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8qCymZHfcipgYIFZtjgCwB25rbGvcryqlZ/T20zm93AiAn0CaNEgUAc/0Sh9NtZEZxMm6u0Iwkyn8pk2PqRftkoQ=="}]},"_npmUser":{"name":"bjesuiter","email":"bjesuiter@gmail.com"},"directories":{},"maintainers":[{"name":"bjesuiter","email":"bjesuiter@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-cors-proxy_1.1.1-BETA.1_1613423093847_0.11786598167562423"},"_hasShrinkwrap":false},"1.1.1-BETA.2":{"name":"@bjesuiter/local-cors-proxy","version":"1.1.1-BETA.2","main":"./lib/index.js","scripts":{"start":"node ./bin/lcp.js","publish":"npm publish --access public","test":"echo \"No tests specified\" && exit 0"},"bin":{"lcp":"bin/lcp.js"},"author":{"name":"Benjamin Jesuiter, forked from 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":{"axios":"^0.21.1","chalk":"^2.3.2","command-line-args":"^5.0.2","cors":"^2.8.4","express":"^4.16.3","gaxios":"^4.1.0","request":"^2.85.0"},"devDependencies":{"prettier":"^2.2.1"},"gitHead":"f91aa928b688e47676c9287bcea20bc86dd09cbb","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":"@bjesuiter/local-cors-proxy@1.1.1-BETA.2","_nodeVersion":"14.15.0","_npmVersion":"7.5.3","dist":{"integrity":"sha512-G+FhcZp/j46J34+1M9iHkwvRYpUekEIfueRDqozbZG+OdFoDfOS0hRS2198pIBDzaPGYS1GWb2De7q95ezjQ8w==","shasum":"b1c235ebb416c8282e5839f958566e7c53da143d","tarball":"https://registry.npmjs.org/@bjesuiter/local-cors-proxy/-/local-cors-proxy-1.1.1-BETA.2.tgz","fileCount":5,"unpackedSize":7020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgK4LBCRA9TVsSAnZWagAAnS4P/jlZYOtcyTldsDHcZmT0\n2Ol99VI1sH3Dtcb2PpLH59hgvAzIDVqX1DvGDu0Kh8uDjASIPcFGRJXHOkc3\nAXtV1RgWySz3RjjRQ3YI7xwhmjzSXC01g0HzeEAnVHGEcW1rlUD4WFlSOvj3\nxcFHdcMiQo2DIwwQ131Fe9Hef6nAqOkMMHj+E1AJ1yZJvji6t4sBZRorDfN8\nbWYFBGINSEs0fZeI064+zJnNoAR+/s73NBwHXpDc2vEYCsktNRe7aHNnOwqH\nVIXB6VQtv7QHqe0ZzM73sIxDpuk39oolT7h0S3xZFok2ahGJ0uNbEVW5dyBB\n/v2qo0BECxoxmh7bTvX6eSqAELPDWW3YPn/sNxGcXkFphJyyU0eqNwpr8F/2\nTfWlJimR3klpyU6z/WkiCRPjLXvLM+cA4f+sMybUAwsnbP7rz8o8kBtX2iro\nUUlvGJRIhpDk4zz5QVLHV6NqnnmERxmwwKz/oaKHtaVBD9Pwp8VF9tAygMZs\nOeFp+EKrGwvCCBgYwk7MGI4x0rL7Bu2qkcySxpNsrvdZpZ233Agj0lmrgUz7\nCHjVLB3kCdBa7i1e9fmf4cS6R1Irwwr3N2dEk/TGX5rKS28lH2LsdUkYgRsn\nUestOWpxEb5/6cGhzxK/2evByJfXDGYl369V4SVRR3l7qsWPMFgnjo+X92G9\nWwAf\r\n=Z5OF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6jnDfzeT6bGBTepMHw74BiPzv4WcLqUw+PrJuGz/njwIhAOmJw7bldtz7RdT0jtgSLxW7a/SnnXCu7vlgADhXLzz+"}]},"_npmUser":{"name":"bjesuiter","email":"bjesuiter@gmail.com"},"directories":{},"maintainers":[{"name":"bjesuiter","email":"bjesuiter@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-cors-proxy_1.1.1-BETA.2_1613464256459_0.8465166073661121"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-15T21:04:53.804Z","1.1.1-BETA.1":"2021-02-15T21:04:54.040Z","modified":"2022-04-04T19:18:21.949Z","1.1.1-BETA.2":"2021-02-16T08:30:56.591Z"},"maintainers":[{"name":"bjesuiter","email":"bjesuiter@gmail.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":"Benjamin Jesuiter, forked from 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\n## Changelog\n\n### 1.1.1-BETA.2\n\n- replaced 'request' package with 'gaxios'\n- Integrated gaxios request with express request/response pattern\n\n### 1.1.1-BETA.1\n\n- Forked from Version 1.1.0 from Gary Meehan\n- replaced 'request' package with 'axios'\n","readmeFilename":"README.md"}