Documentation
CORSPORXY Logo

Documentation → general

Getting Started

Basic Usage

Replace https://corsproxy.io with your actual proxy URL:

// Instead of this (blocked by CORS):
fetch('https://example.com/api')

// Use this:
fetch('https://corsproxy.io/?url=https://example.com/api')

URL Formats

You can specify the target URL in three different ways:

// Method 1: Query parameter (recommended)
'https://corsproxy.io/?url=https://example.com/api'

// Method 2: Direct query
'https://corsproxy.io/?https://example.com/api'

// Method 3: Path-based
'https://corsproxy.io/https://example.com/api'