Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/github30/express-cors-anywhere
CORS Proxy via Deta
https://github.com/github30/express-cors-anywhere
cors cors-anywhere cors-proxy deta deta-cors deta-micros
Last synced: 4 days ago
JSON representation
CORS Proxy via Deta
- Host: GitHub
- URL: https://github.com/github30/express-cors-anywhere
- Owner: GitHub30
- License: mit
- Created: 2022-08-31T13:09:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-31T13:17:42.000Z (over 2 years ago)
- Last Synced: 2024-12-20T03:06:52.039Z (6 days ago)
- Topics: cors, cors-anywhere, cors-proxy, deta, deta-cors, deta-micros
- Language: JavaScript
- Homepage: https://corsproxy.deta.dev/
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Usage
curl https://corsproxy.deta.dev/https://example.com/
```javascript
html = await fetch('https://corsproxy.deta.dev/https://example.com/').then(r=>r.text())
console.log(html)
```POST request
```bash
curl -X POST -H "Content-Type: application/json" -d '{"Name":"John Doe", "Age":"5"}' https://corsproxy.deta.dev/https://httpbin.org/post
``````javascript
res = await fetch('https://corsproxy.deta.dev/https://httpbin.org/post', {method: 'POST', body: '{"Name":"John Doe", "Age":"5"}'}).then(r=>r.json())
console.log(res)
```Status code
https://corsproxy.deta.dev/https://httpbin.org/status/404
### Debug
```bash
git clone https://github.com/GitHub30/express-cors-anywhere
cd express-cors-anywhere
npm installnode app.js
```### Deploy
```bash
deta deploy
```