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: 13 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-01T23:22:02.000Z (5 months ago)
- Last Synced: 2024-10-17T10:07:33.548Z (27 days ago)
- Topics: cors, reverse-proxies
- Language: JavaScript
- Homepage: https://cors.now.sh
- Size: 24.4 KB
- Stars: 96
- Watchers: 6
- Forks: 39
- Open Issues: 13
-
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)