Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hemanth/cors-now
reverse proxy with CORS headers.
https://github.com/hemanth/cors-now
cors reverse-proxies
Last synced: 21 days 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-09T04:31:15.000Z (about 1 month ago)
- Last Synced: 2024-11-09T05:25:40.944Z (about 1 month ago)
- Topics: cors, reverse-proxies
- Language: JavaScript
- Homepage: https://cors.now.sh
- Size: 24.4 KB
- Stars: 96
- Watchers: 6
- Forks: 39
- 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)