You send a request in the Hoppscotch web app and instead of a response you get a network or CORS error — yet the same request works with cURL or in another tool. This guide explains why that happens and how to fix it.
Why it happens
When Hoppscotch runs in a browser, your requests are sent by the browser. Browsers follow a security rule called the same-origin policy: a page from one website may only read responses from another website if that website allows it with special CORS headers (such as Access-Control-Allow-Origin).
Many APIs don’t send these headers because they are meant to be called from servers or mobile apps, not from web pages. The API works fine — the browser simply refuses to show the response to the web page. Two related limits also exist:
- A page served over https can’t call plain http addresses (mixed content).
- Browsers restrict calls from public websites to
localhostand private network addresses.
Fix 1: Use the desktop app (simplest)
The desktop app sends requests directly, not through a browser, so CORS rules don’t apply. It also reaches localhost, plain http and private network addresses without trouble. If you test APIs regularly, this is the most reliable option. Get it from the downloads page.
Fix 2: Install the browser extension
Hoppscotch offers official extensions for Chrome-based browsers and Firefox. Once installed, the web app can hand requests to the extension, which isn’t bound by the page’s CORS rules.
- Install the Hoppscotch extension from your browser’s official extension store (linked from the Hoppscotch website and GitHub).
- Reload hoppscotch.io.
- Open Settings and, under the interceptor options, select the browser extension.
- Send your request again.
The extension needs permission to access the sites you test. Grant access only to the domains you need if your browser offers that choice.
Fix 3: Use the proxy
In the web app’s settings you can switch the interceptor to Proxy. Requests then travel through a proxy server that adds the headers the browser needs. The official proxy is run by the Hoppscotch team, and the proxy software is open source, so you can host your own and enter its URL in settings.
With a proxy, your request — including headers and tokens — passes through that server. For private or production credentials, prefer the desktop app, the extension or a proxy you host yourself.
Fix 4 (if you own the API): send CORS headers
If you build the API and want browsers to call it, configure the server to send the right CORS headers for your front-end’s origin. Don’t set Access-Control-Allow-Origin: * on APIs that use cookies or sensitive data. Use the OPTIONS method in Hoppscotch to check what your server answers to a preflight request — see HTTP methods explained.
Still failing?
- Check the URL for typos and confirm the server is running.
- For https APIs with a self-signed certificate, the browser may reject the connection; the desktop app is easier for this case.
- Try the same request with cURL. If cURL also fails, the problem is the server or network, not CORS.