1.1.11 • Published 2 years ago
webhook-store-cli v1.1.11
Local CORS Proxy + Webhook Store
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.
This module was built to solve the issue of getting this error:
No '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 disableGetting Started
npx webhook-store-cli@latestSimple Example
Start Proxy and open Webhook Store client in a tab:
npx webhook-store-cli@latestStart Proxy and open a specific Webhook Store client:
npx webhook-store-cli@latest --webhookStore https://lol.webhook.store/Start Proxy without opening a tab:
npx webhook-store-cli@latest --noOpenStart Proxy to target port 9000:
npx webhook-store-cli@latest --port 9000Start Proxy to target specific port, hostname and protocol:
npx webhook-store-cli@latest --protocol https --hostname dev.localenv --port 9000Options
| Option | Example | Default |
|---|---|---|
| --webhookStore | https://lol.webhook.store | |
| --noOpen | (no value needed) | |
| --port | 9000 | 9000 |
| --protocol | https | http |
| --hostname | dev.localenv | 127.0.0.1 |
Deploy
Bump version
npm publish --access public