Simple HTTP proxy that enables cross-domain requests to any JSON API.
10K+

Simple HTTP proxy that enables cross-domain requests to any JSON API. See https://jsonp.afeld.me for documentation. See the releases page for the client library changelog.
See package.json for compatible Node versions.
npm install
npm start
and do requests to http://localhost:8000/?url=.... For live reloading:
npm install -g nodemon
export $(cat .env | xargs) && nodemon
touch .env
docker-compose up.
CTRL-c and run again.This app is deployed to AWS with the Serverless Framework. To deploy, run
sls create_domain
sls deploy
If you use the client library with your own JSONP deployment, override the proxy URL before calling $.jsonp().
$.jsonp.PROXY = 'https://mydomain.com/proxy/path/';
Do the following to set up an nginx proxy for rate limiting the requests.
Go into the terraform/ directory.
cd terraform
Create a terraform.tfvars file.
cloudflare_email = "..."
cloudflare_token = "..."
Deploy the environment.
terraform init
terraform apply
Content type
Image
Digest
Size
61.2 MB
Last updated
almost 8 years ago
docker pull afeld/jsonp