Git Product home page Git Product logo

corsproxy-tas3's Introduction

Cors-Proxy

Need a way for students to get around CORS issues for front-end only projects? Just set apiServerHost as a Heroku config variable, and have students point their API request to the Heroku-app instead of the API that doesn't support CORS.

Galvanize Student Proxies

  • For: http://www.omdbapi.com Use: https://g-omdbapi.herokuapp.com
  • For: https://api.brewerydb.com Use: https://g44-brewerydb.herokuapp.com
  • For: https://wikipedia.com Use: https://g-wikipedia.herokuapp.com/
  • For: https://api.foodpairing.com Use: https://g-foodpairing.herokuapp.com/
  • For: 'http://food2fork.com/' Use: 'http://g-food2fork.herokuapp.com/'

Setup

  • Clone this repo and run: heroku create YOUR_APP_NAME. Replace YOUR_APP_NAME with g-API_URI so for http://www.omdbapi.com, use: g-omdbapi
  • Set the config var: heroku config:set apiServerHost=API_TO_PROXY replace API_TO_PROXY with the API you want to proxy. E.g.: heroku config:set apiServerHost=http://www.omdbapi.com
  • Update this readme with your API for future reuse.
  • Push to Heroku: git push heroku master

Usage

  • Make requests to: https://YOUR_APP_NAME.herokuapp.com/?t=the+matrix&y=&plot=short&r=json

corsproxy-tas3's People

Watchers

James Cloos avatar Tas Drake 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.