Last active
April 6, 2019 10:03
-
-
Save wing-puah/0a751a406ab88a0ba48ef2f3fbfdb4fe to your computer and use it in GitHub Desktop.
Proxy for API call to overwrite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const proxy = 'https://cors-anywhere.herokuapp.com/'; | |
| const CORSBlockedURL = 'https://www.some.block.url.com'; | |
| axios | |
| .get(`${proxy}${CORSBlockedURL}`) | |
| .then(res => { | |
| console.log("res in axios", res); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment