3 best open source CORS proxy services you can self-host

Reynaldi
Reynaldi •

The best open source CORS proxy services

1. Corsfix

Corsfix

What is Corsfix?

  • Created: 2024
  • License: AGPLv3

Corsfix is the modern and secure CORS proxy platform, which includes several powerful features such as domain allowlisting, secrets management, cached responses, and more. It allows you to build powerful web applications without worrying about CORS errors.

Self-hosting process is well documented and supported via Docker services.

Pros and Cons

ProsCons
Advanced CORS proxy featuresSelf-hosting can be complicated with multiple services
Easy-to-use management dashboard
Secure against common CORS proxy vulnerabilities
Free tier available on cloud

2. CORS Anywhere

CORS Anywhere

What is CORS Anywhere?

  • Created: 2013
  • License: MIT

CORS Anywhere is the most popular open source CORS proxy, with over 9,000 stars. It is simple and it works. It supports various ways to pass in the target URL for proxying, providing more flexibility.

Self-hosting is pretty straightforward. While it doesn’t support Docker, you can just clone the repository, run npm install, and execute the server.js file.

Pros and Cons

ProsCons
Relatively easy self-hostingNo advanced features
Only requires a single serverHistorically susceptible to SSRF
Supports origin blacklisting
Rate limiting configuration

3. Whatever Origin

Whatever Origin

What is Whatever Origin?

  • Created: 2011
  • License: -

Whatever Origin is the original open source CORS proxy, first built in 2011, even earlier than CORS Anywhere. It was created as an open source alternative to anyorigin.com. It supports basic proxying with GET requests and provides JSONP support.

Self-hosting is easy, you can use Docker with published images, or if you prefer a single file without dependencies, it’s possible too with Go build, making it lightweight and compilable into a single binary.

Pros and Cons

ProsCons
Easy self-hosting without dependencies (Go build)Only supports GET requests
Supports JSONPVery basic features
Lightweight service

It's time to build great websites without CORS errors

First 500 CORS proxy requests a month are free

Fix CORS errorsNo credit card required.