CORS.SH -
CORS PROXY
Sick of cors errors? CORS.SH, A fast & reliable cors proxy for your websites here for the rescue.
![](/_next/image?url=%2Fassets%2Fhome-demo-0-illust-0-web.png&w=256&q=75)
![](/_next/image?url=%2Fassets%2Fhome-demo-0-illust-1-cloud.png&w=256&q=75)
![](/_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')