CORS Unblocker

Fix “blocked by CORS policy” errors while you develop.

Switch it on for the site you are working on and reload: its cross-origin fetch and XMLHttpRequest calls go through, cookies included. No proxy, and nothing leaves your machine.

Free for Chrome 105+ (also Edge, Brave, Opera) and Firefox 140+, including Firefox for Android.

CORS Unblocker – One switch
One switch
CORS Unblocker – Off everywhere else
Off everywhere else
CORS Unblocker – Dark mode
Dark mode
CORS Unblocker – Every site it is on for
Every site it is on for

What it does

One switch per site

It works by host name: one switch for localhost covers every port, subdomains included. When your dev server moves port or scheme, it follows.

Cookies included

Responses allow your site’s exact origin with credentials, not *, which browsers refuse on requests that send cookies. Cookie-based APIs work with the same switch.

Strict servers too

The Origin header is removed from requests, and every response, preflights included, gets the CORS headers. Servers with no CORS headers or another allowed origin work.

Public page to localhost

Chrome’s private-network check is answered, so a page on the internet can call an API running on your own machine.

Off everywhere else

Every other site keeps the browser’s normal CORS rules. A list shows each site it is on for, with Turn off and Turn off everywhere.

Nothing else is touched

Page loads, downloads, sign-in redirects and streaming are left alone. No script is injected, and the page cannot tell the extension is there.

How to use it

Three clicks, then back to work.

  1. 1

    Open your site

    Go to the site you are working on, for example http://localhost:5173.

  2. 2

    Switch it on

    Click the CORS Unblocker icon and switch on Unblock CORS on this site. The toolbar badge reads ON.

  3. 3

    Reload the page

    Press Reload page in the popup: requests that already failed do not retry by themselves.

Good to know

What no extension can fix.

A preflight answered with an error status or a redirect still fails: the browser needs a 2xx reply, and extensions can change headers but not status codes. Fix the server, or call the final URL directly.

A request that sends cookies with an unusual custom header can still be refused. It allows one origin per site at a time, so with localhost:3000 and localhost:5173 both open, the tab you switched to last wins. Third-party cookies follow your browser settings, and chrome:// pages, the Web Store and file:// pages are out of reach.

The server still sees you: this changes what the browser enforces, not what the server allows. It does not sign you in or get around server-side checks.

Who it helps

  • Front-end developers whose app on localhost calls an API on another port or domain.
  • Developers testing against a staging or third-party API whose CORS settings they cannot change.
  • Anyone debugging cookie-based sign-in across two origins.

Frequently asked questions

How do I install CORS Unblocker?
Add it from the Chrome Web Store in Chrome, Edge, Brave or Opera (Chrome 105 or later), or from Firefox Add-ons in Firefox 140 or later, Firefox for Android included. Developers can also load the source unpacked in Chrome.
Is CORS Unblocker free?
Yes. It is free and open source under the MIT license. There is no account, no ads and no paid version.
Why does it ask for access to every website?
The servers your site calls can be on any domain, and the extension needs access to them to change their CORS headers. Headers change only for requests made by the sites you switched on, and the browser applies the rules itself: the extension never sees request or response contents and injects no scripts.
Does it collect any data?
No. It stores only the list of sites you switched it on for, on your computer, and makes no network requests of its own: no analytics, no telemetry, no crash reports.
It is on, but my request still fails. Why?
Press Reload page first: requests that already failed do not retry. If it still fails, the preflight may get an error status or a redirect, which no extension can change, or the request sends cookies with an unusual custom header.
Is it safe to leave installed?
Yes. It is off on every site until you switch it on, and every other site keeps the browser’s normal CORS rules. The list of sites it is on for lets you turn any of them off, or all at once.

Add CORS Unblocker to your browser

Free for Chrome, Edge, Brave, Opera and Firefox. The source is on GitHub under the MIT license.

More from HomieLab

Small, focused apps from the same maker.