Skip to content

lfucg/lexington-cors-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

corsproxy

standalone CORS proxy

Build Status Dependency Status devDependency Status

NPM

Setup

npm install -g corsproxy
corsproxy
# with custom port: CORSPROXY_PORT=1234 corsproxy
# with custom host: CORSPROXY_HOST=localhost corsproxy
# with debug server: DEBUG=1 corsproxy

Usage

The cors proxy will start at http://localhost:1337. To access another domain, use the domain name (including port) as the first folder, e.g.

For Lexington to deploy on Heroku:

  • Create heroku app with URL: 'lexington-cors-proxy'
  • From local dev machine: git push heroku master
  • heroku config:set CORSANYWHERE_WHITELIST='lfucg.github.io','http://localhost:.*','.*lexky-d8.pantheonsite.io','.*lexingtonky.formstack.com','.*\.lexingtonky\.gov'
  • To send CORS requests to https://www.citygram.org/subscriptions`, you use https://lexington-cors-proxy.herokuapp.com/www.citygram.org/subscriptions

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 96.5%
  • JavaScript 3.2%
  • Shell 0.3%