Skip to content

Getting Started

To use Corsfix, add https://proxy.corsfix.com/? before your URL when making fetch requests.

// Instead of:
fetch("https://api.example.com/data");
// Use:
fetch("https://proxy.corsfix.com/?https://api.example.com/data");

Make sure you have added your website in the dashboard to use in production.

// GET request
fetch("https://proxy.corsfix.com/?https://api.example.com/users")
.then((response) => response.json())
.then((data) => console.log(data));
// POST request
fetch("https://proxy.corsfix.com/?https://api.example.com/users", {
method: "POST",
body: JSON.stringify({ name: "John" }),
headers: {
"Content-Type": "application/json",
},
});