Coder Social home page Coder Social logo

teppei696 / heroku-cors-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alorel/heroku-cors-proxy

0.0 1.0 0.0 383 KB

A CORS-enabled Express proxy server ready to deploy to Heroku.

Home Page: https://www.heroku.com/deploy/?template=https://github.com/Alorel/heroku-cors-proxy

License: MIT License

JavaScript 100.00%

heroku-cors-proxy's Introduction

Heroku CORS proxy

Node Version Support: 7.6+ Build Status Coverage Status Dependencies Dev Dependencies license Version Greenkeeper badge

Deploy to Heroku

A CORS-enabled Express proxy server ready to deploy to Heroku.

Features

  • Origin whitelisting
  • Caching
  • Automatic minification of HTML and JSON responses
  • Automatic brotli and/or gzip compression

Restrictions

  • Only GET requests are permitted
  • Requests without an origin header are rejected

Configuration

All configuration is done via environment variables

ORIGIN_WHITELIST

A comma-separated list of domain names allowed to use the proxy.

For example, if you want the proxy to be accessible from www.foo.com and foo.com you can set this to www.foo.com,foo.com.

Leave empty to allow all origins.

TARGET_WHITELIST

Same as ORIGIN_WHITELIST, but for the domain names of URLs we're CORSing.

CACHE_TIME

Amount of time, in milliseconds, that cacheable responses will be stored in Redis. Omit or set to 0 to disable caching.

LOG_LEVEL

Logging level. Permitted values, in order of priority:

  • emerg
  • alert
  • crit
  • error
  • warning
  • notice
  • info
  • debug

Supported versions

7.6+

heroku-cors-proxy's People

Contributors

alorel avatar greenkeeper[bot] avatar greenkeeperio-bot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.