Send API requests from a browser side panel, without fighting CORS
You're reading an API's documentation, or you're in your own web app watching it misbehave, and you want to send one request. Switching to another app works. A side panel right next to the page is faster.
The Requestarium browser extension adds that side panel. It runs in Chrome and other Chromium browsers such as Edge, Brave and Opera.
The side panel and editor tabs
The panel shows the same tree as the IDE sidebar: workspaces, collections, folders, requests, environments and activity. A request opens in an editor tab with the same editor as VS Code and JetBrains: edit, save, send, view the response, switch environments, create share links, import and export through files.
Pre-request and post-response scripts work. They run in a sandbox inside the extension, with the same pm/cm API and require('crypto-js' | 'moment' | 'uuid'), and a 10-second limit.
Why CORS isn't a problem here
A request from a web page to another origin is limited by CORS: the browser blocks the response unless the API says that origin may read it. A request from an extension page to a site the extension has permission for isn't. So the side panel can call any API, including one with no CORS headers, and your localhost.
The first time you send to a new site, the browser asks you to allow it (the click on Send is what lets it ask). The options page lists the sites you've allowed, with Remove.
For local servers that check the Origin header, the extension removes its own chrome-extension://… origin from requests to localhost, so they're accepted like any API client's.
Privacy
- Requests go out with
credentials: 'omit': your browser's cookies for that site are not sent. Add aCookieheader yourself if you mean to. - The extension has no
tabs,cookiesorwebRequestpermission. It only runs a content script on the Requestarium web app, for the bridge described below. - History is kept locally and redacted, the same way as in the IDEs.
Signing in
Sign in with the same browser flow as the IDE extensions: approve in the web app, and the extension gets a personal API token named after the browser ("Chrome extension on macOS"). It's listed and revocable in Settings ▸ API tokens like any other. The options page also accepts a pasted token.
Two more things it does
- A DevTools panel that lists the API calls the page makes, and saves one to a collection or copies it as cURL, with the browser-only headers stripped: capture API calls from DevTools.
- A bridge for the web app, so requests sent from app.requestarium.com can reach your localhost and VPN through the extension: test localhost from the web app.
Limits
Browsers set some rules no extension can change, and the UI says so where they apply:
- Forbidden headers like
Cookie,Origin,RefererandUser-Agentcan't be set; a warning names the dropped ones. Set-Cookiein a response is never readable.- A redirect that isn't followed has no status or
Location.
gRPC and message brokers aren't available from the browser. Use the desktop app or an IDE for those.