warp cors logo

warp cors

Enable CORS headers on any request and avoid same-origin policy issues.

Usage

Prepend your request url with https://warp-co.rs/ to proxy your request and add CORS headers to the response. For example;

https://warp-co.rs/https://example.org/

The proxy will respond to pre-flight requests allowing all methods and headers. Any other requests will be forwarded to the destination and the proxy will modify the response to allow any origin and expose all headers found in the response.

The protocol of the url you are requesting must be either http or https. Cookies are not supported, Cookie and Set-Cookie headers are stripped from the request and the proxied response respectively.

If you find this service useful you can support me on Ko-fi or sponsor me through GitHub Sponsors.

Privacy

Basic access logs are kept for requests to the service in order to prevent abuse. This includes the IP address of the client, and the proxied url being requested. No other information is stored.

The source code behind this service is open-source and can be reviewed. However, there is no guarantee that this matches what is running on this server. Please keep this in mind when using the service.

You should never send any requests containing sensitive information.

Using locally

The code behind the proxy service is open-source and can be used locally from your own machine or deployed to your own server. There are a number of ways this can be achieved.

Docker

Docker images are provided for each release and are available from Docker Hub.

$ docker run -dp 3030:3030 bassetts/warp-cors

Binaries

Archives containing pre-compiled binaries are available for Linux, macOS, and Windows. These are available from GitHub. Further information is provided inside the README.md file within the archive.

Cargo

Finally, Rust programmers can install the service using cargo.

$ cargo install warp-cors
$ warp-cors --help # Show usage instructions