https://github.com/tonychouteau/no-cors-bridge
Server to pass through cors with Axios server side (XMLHttpRequest)
https://github.com/tonychouteau/no-cors-bridge
axios cors-bridge expressjs javascript nodejs
Last synced: about 2 months ago
JSON representation
Server to pass through cors with Axios server side (XMLHttpRequest)
- Host: GitHub
- URL: https://github.com/tonychouteau/no-cors-bridge
- Owner: TonyChouteau
- Created: 2020-06-01T01:10:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T22:57:54.000Z (over 2 years ago)
- Last Synced: 2025-01-31T16:35:48.465Z (4 months ago)
- Topics: axios, cors-bridge, expressjs, javascript, nodejs
- Language: JavaScript
- Homepage: http://vps.tonychouteau.fr/bridge
- Size: 82 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **no-cors-bridge**
A NodeJS server to pass through CORS with Axios server side (XMLHttpRequest)# **Already online**
## **How to use it**
Make a request on : http://vps.tonychouteau.fr/bridge/
Exemple : http://vps.tonychouteau.fr/bridge/https://jsonplaceholder.typicode.com/todos/1
Only GET works for now.
## **Use**
### **Before**
```javascript
fetch("https://api.namefake.com/french-france/random")
.then(res => res.json())
.then(data => {
console.log(data);
});
```
### **Now**
```javascript
fetch("http://vps.tonychouteau.fr/bridge/https://api.namefake.com/french-france/random")
.then(res => res.json())
.then(data => {
console.log(data);
});
```