CORS.SH -
CORS PROXY
Sick of cors errors? CORS.SH, A fast & reliable cors proxy for your websites here for the rescue.
![](/https/cors.sh/_next/image?url=%2Fassets%2Fhome-demo-0-illust-0-web.png&w=256&q=75)
![](/https/cors.sh/_next/image?url=%2Fassets%2Fhome-demo-0-illust-1-cloud.png&w=256&q=75)
![](/https/cors.sh/_next/image?url=%2Fassets%2Fhome-demo-0-illust-2-server.png&w=256&q=75)
fetch('https://proxy.cors.sh/https://example.com', {
headers: {
'x-cors-api-key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
}
});
// or...
functon fetchWithProxy(url, params){
return fetch(`https://proxy.cors.sh/${url}`,
{
...params,
headers:
{
...params.headers,
'x-cors-api-key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
}
});
}
fetchWithProxy('https://example.com')