CORS Proxy Service

This service allows you to bypass CORS restrictions by proxying requests to other domains.

Usage

Get JSON Response

Returns the response wrapped in JSON with metadata:

GET /get?url=https://example.com

Get Raw Response

Returns the raw response with original content type:

GET /raw?url=https://example.com

Examples


          // JavaScript fetch examples
          const response = await fetch('/get?url=' + encodeURIComponent('https://api.github.com/users/octocat'));
          const data = await response.json();
          console.log(data.contents);

          const imageResponse = await fetch('/raw?url=' + encodeURIComponent('https://example.com/image.jpg'));
          const imageBlob = await imageResponse.blob();
        

CORS Headers

All responses include appropriate CORS headers to allow cross-origin requests from any domain.