You can access APIs blocked by Cross-Origin Resource Sharing (CORS) restriction by using either Hoppscotch Agent, Proxyscotch or custom middleware. You can also use the Hoppscotch web extension to intercept requests and responses.

Hoppscotch Agent

The Hoppscotch Agent is a micro application designed to mitigate the challenges posed by CORS in modern web browsers. Acting as a local intermediary, it intercepts API requests made through the Hoppscotch web app and reroutes them through your local machine. This means that the Hoppscotch Agent handles requests using your local network configuration.

  1. Download the Hoppscotch Agent for your operating system:
  1. Open Hoppscotch app and navigate to the “Interceptors” section in the “Settings” page.
  2. Locate the “Agent” option within the Interceptors section to initiate a connection to your local agent.
  3. The application will prompt you for a “One-Time Verification Code”. This verification code will be generated within the Hoppscotch Agent.
  4. Enter the verification code into the application to establish a secure connection.

Once connected, all API requests made through the Hoppscotch web app will be routed through Hoppscotch agent, effectively eliminating CORS-related issues.

Recommended interceptor for most users as it is compaitble with all platforms.