https://github.com/hemanth/cors-now
reverse proxy with CORS headers.
https://github.com/hemanth/cors-now
cors reverse-proxies
Last synced: 8 months ago
JSON representation
reverse proxy with CORS headers.
- Host: GitHub
- URL: https://github.com/hemanth/cors-now
- Owner: hemanth
- License: mit
- Created: 2016-09-12T07:01:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-09T04:31:15.000Z (over 1 year ago)
- Last Synced: 2025-03-29T13:05:35.266Z (about 1 year ago)
- Topics: cors, reverse-proxies
- Language: JavaScript
- Homepage: https://cors.now.sh
- Size: 25.4 KB
- Stars: 97
- Watchers: 5
- Forks: 41
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# cors-now
> reverse proxy with CORS headers.
## Usage:
__Just do a `fetch` on the below:__
```
https://cors.now.sh/
```
__Example:__
```js
// The XKCD URL below doesn't allow CORS.
fetch('https://cors.now.sh/http://xkcd.com/info.0.json')
.then(console.log)
.catch(console.error)
```
P.S: Make sure you give the absolute URL, or else you will see an error like:
```js
{
"error": "Only absolute urls are supported"
}
```
## WHY?
* For reverse proxies.
* For crawlers, spiders and what not!
## License
MIT © [Hemanth.HM](https://h3manth.com)