Skip to content

hontas/request-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

request-proxy

Getting around the 'Access-Control-Allow-Origin' problem of some API's

Install

git clone https://github.com/hontas/request-proxy.git
cd request-proxy
npm install && npm start

Use

fetch('http://localhost:5000?url=XXX')
  .then((response) => /* handle response */)
  .catch((error) => /* handle error */);

Where XXX is the address you wish to perform a get request to

About

Getting around the 'Access-Control-Allow-Origin' problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published