Documentation → general
How to Use CorsProxy
This page covers the recommended URL format, proper URL encoding, and copy-paste examples.
Recommended URL format
Use the ?url= query parameter:
https://corsproxy.io/?url=<ENCODED_TARGET_URL>
In other words, corsproxy.io/?url= is the prefix and your encoded target URL goes into the url parameter.
Example:
https://corsproxy.io/?url=https%3A%2F%2Fapi.github.com%2Fusers%2Foctocat
Always encodeURIComponent() the target URL
If your target URL contains ?, &, spaces, or non-ASCII characters, encode it first:
const targetUrl = 'https://api.example.com/search?q=hello world&type=json';
const proxyUrl = `https://corsproxy.io/?url=${encodeURIComponent(targetUrl)}`;
const res = await fetch(proxyUrl);
JavaScript (fetch)
const url = 'https://corsproxy.io/?url=' + encodeURIComponent('https://httpbin.org/get');
const res = await fetch(url);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);
cURL
curl "https://corsproxy.io/?url=https%3A%2F%2Fhttpbin.org%2Fget"
Common mistakes
- Not encoding the target URL (results in broken query strings).
- Using the less-compatible direct query format (
?https://...) for complex URLs. - Treating upstream
403responses as “CORS errors” (see403 Forbidden).
Related guides
Fix Supabase CORS Errors: Edge Functions, Auth, Storage & REST API (2025 Guide)
Complete guide to fixing Supabase CORS errors for Edge Functions, Auth, Storage, Realtime, and REST API. Learn proper configuration and use corsproxy.io as a quick fix when you cannot modify Supabase settings.
Fix CORB and ORB Errors Instantly with corsproxy.io
Stop CORB and ORB blocking errors now! Learn how corsproxy.io fixes Cross-Origin Read Blocking and Opaque Response Blocking instantly—free, no configuration required.
Fix CloudFront CDN CORS, ORB & 502 Errors That Only Happen in Some Locations
Struggling with CloudFront CORS errors, net::ERR_BLOCKED_BY_ORB, and 502 Bad Gateway that work in the UK but fail in the US? Learn why regional CDN caching causes inconsistent CORS issues and how to fix them instantly with corsproxy.io.
Glossary terms
BeautifulSoup
A Python library for parsing HTML and XML documents, providing easy-to-use methods for navigating, searching, and extracting data from web pages.
DNS
Domain Name System - The internet's phonebook that translates human-readable domain names into IP addresses that computers use to communicate.