How to Deploy cors-anywhere to Heroku

Tadashi Shigeoka ·  Tue, February 4, 2020

I’ll introduce how to deploy cors-anywhere to Heroku.

Heroku

Prerequisites

About CORS

Please read the following articles about CORS:

Steps to Host cors-anywhere on Heroku

git clone cors-anywhere

git clone [email protected]:Rob--W/cors-anywhere.git
cd cors-anywhere

Create Heroku App

Create a Heroku app with heroku create app-name.

heroku create cors-codenote

Deploy cors-anywhere to Heroku

Deploy to Heroku with the familiar git push heroku master.

git push heroku master

Verify cors-anywhere App Operation

heroku open # Open https://cors-codenote.herokuapp.com/

Finally, open the URL https://cors-codenote.herokuapp.com/ in a browser with heroku open, and if text like This API enables cross-origin requests to anywhere. is displayed, we can confirm that it’s properly hosted on Heroku.

cors-anywhere

That’s all about wanting to host cors-anywhere on Heroku from the Gemba.