Skip to content

RoyalHaskoningDHV/easy-cors-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy-cors-proxy

Deploy

This simple node.js app proxies a given PROXY_URL and adds all the necessary CORS headers. This is useful when creating client side application that need to access APIs on domains other than the one the app is being served from.

The simplest way to get this running is to click on the "Deploy to Heroku" button which will run the app for free in most cases.

Environment Variables

PROXY_URL

The URL of the server you want to proxy. Example: http://example.com:80.

ALLOW_ORIGIN

The HTTP Origin you want to allow. Default value: *.

ALLOW_METHODS

The HTTP Methods you want to allow. Default value: *.

ALLOW_HEADERS

The HTTP Headers you want to allow. Multiple values separated by comma. Default value: X-Requested-With.

About

Proxy any URL with added CORS headers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%