Skip to content

Getting Started

To use Corsfix, add https://proxy.corsfix.com/? before your URL when making fetch requests.

Basic Usage

// Instead of:
fetch('https://api.example.com/data')
// Use:
fetch('https://proxy.corsfix.com/?https://api.example.com/data')

Example

// GET request
fetch('https://proxy.corsfix.com/?https://api.example.com/users')
.then(response => response.json())
.then(data => console.log(data));
// POST request
fetch('https://proxy.corsfix.com/?https://api.example.com/users', {
method: 'POST',
body: JSON.stringify({ name: 'John' }),
headers: {
'Content-Type': 'application/json'
}
});