Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)