cors.io

The Problem

Seeing messages like "No 'Access-Control-Allow-Origin' header is present on the requested resource" or "Access to fetch at ... from origin ... has been blocked by CORS policy"? Those CORS errors stop your app from talking to the API you need.

The Solution

Send the request through cors.io and we will add the missing headers so you can keep working.

Fetch a URL:

Add ?url= or ?u= with the target URL:

https://cors.io/?url=https://api.example.com/data
https://cors.io/?u=https://api.example.com/data

JavaScript Example:

fetch('https://cors.io/?url=https://api.example.com/data')
  .then(response => response.json())
  .then(data => {
    console.log('Status:', data.status);
    console.log('Body:', data.body);
  });
Need this because of the error above? Just proxy your request through cors.io and it will add the missing CORS headers for you so you can debug the API response.