background graphic

CORS.SH -
CORS PROXY

Sick of cors errors? CORS.SH, A fast & reliable cors proxy for your websites here for the rescue.

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')