weld-io / http-proxy

Simple HTTP proxy server designed to solve AJAX CORS issues with some web services

Home Page:http://weld-io.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http-proxy

Simple HTTP proxy server designed to solve AJAX CORS issues with some web services.

Made by the team at Weld (www.weld.io), the code-free app and web creation tool:

Weld

Usage

http://localhost:3014/REMOTE_HOST/PATH?QUERY

Example: instead of accessing:

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22stockholm%22)&format=json

you can use:

http://localhost:3014/query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22stockholm%22)&format=json

Options

Force HTTP request (otherwise same protocol as how you called http-proxy)

&forceHTTP=true

How to Run

We recommend setting up HTTPS on localhost, see http://blog.mgechev.com/2014/02/19/create-https-tls-ssl-application-with-express-nodejs/

Then, just start with:

grunt

Server will default to http://localhost:3014

Implementation

Built on Node.js and Express.

Deploying on Heroku

# Set up and configure app
heroku create MYAPPNAME
heroku config:set NODE_ENV=production

About

Simple HTTP proxy server designed to solve AJAX CORS issues with some web services

http://weld-io.github.io

License:MIT License


Languages

Language:JavaScript 100.0%