Skip to content

Fetch

This page shows how to use Corsfix as a proxy to bypass CORS errors in Fetch requests.

// basic usage
fetch("https://proxy.corsfix.com/?<TARGET_URL>");
// with headers override
fetch("https://proxy.corsfix.com/?<TARGET_URL>", {
headers: {
"x-corsfix-headers": JSON.stringify({
Origin: "https://www.google.com",
Referer: "https://www.google.com",
}),
},
});