cors-anywhere.herokuapp.com not working (503). What else can I try?

前端 未结 1 497
情歌与酒
情歌与酒 2020-12-04 16:22

I am trying to send a get request to the Wikipedia API. I am sending the request form a angular frontend so i\'m trying to use the Heroku CORS Anywhere endpoint to avoid CO

相关标签:
1条回答
  • 2020-12-04 16:34

    You can deploy a CORS Anywhere server to Heroku in literally just 2-3 minutes, with 5 commands:

    git clone https://github.com/Rob--W/cors-anywhere.git
    cd cors-anywhere/
    npm install
    heroku create
    git push heroku master
    

    After running those commands, you’ll end up with your own CORS Anywhere proxy running at, e.g., https://cryptic-headland-94862.herokuapp.com/. So then instead of prefixing your request URL with https://cors-anywhere.herokuapp.com, prefix it instead with your own proxy’s URL.

    0 讨论(0)
提交回复
热议问题