Allow cross-origin requests
in one click

A Chrome extension for developers and testers. Click the toolbar icon to turn CORS on while you test an API, then click again to go back to normal.

The CORS Toggle options page with Allow CORS switched on and a blue ON badge on the toolbar icon

Small on purpose

One switch, a clear icon, and nothing running in the background while it's off.

One-click toggle

Click the toolbar icon to switch CORS on or off. No popup to open, no menus.

Always know the state

The icon is blue with an ON badge while active, and grey when it's off.

No tracking

No analytics and no network calls. Your on/off choice is the only thing it stores.

Test APIs from localhost

Call a third-party API from your dev server without setting up a proxy.

Side-by-side console: a fetch blocked by CORS policy with the extension off, and a 200 OK response with it on

Install

Until the Chrome Web Store listing is live, load it from the release zip.

  1. Download cors-toggle.zip from the latest release and unzip it.
  2. Open chrome://extensions and turn on Developer mode in the top right.
  3. Click Load unpacked and choose the unzipped folder.
  4. Pin CORS Toggle to the toolbar, then click it to turn CORS on.

Turn it off when you finish

While it's on, every site you open can read responses from other sites that don't need a sign-in, including services on your local network. Use it for testing, not everyday browsing. Requests sent with cookies still need the server's own CORS headers.