Use CORS Tester

Enter your data below to use the CORS Tester

📌 Try these examples:
RESULT

Last updated

CORS Tester Examples

The CORS Tester checks whether a URL correctly implements CORS headers for a given origin. Below are examples of test results for common CORS configurations and issues.

Successful CORS Test — Public API

Test input:

URL:    https://api.example.com/data
Origin: https://myapp.com
Method: GET

Response headers received:

Access-Control-Allow-Origin: *
Content-Type: application/json
Vary: Accept-Encoding

Result:

✓ CORS ALLOWED
  Access-Control-Allow-Origin: * (all origins permitted)
  Method GET is allowed
  No credentials required — wildcard origin is valid

Successful CORS Test — Authenticated API

Test input:

URL:    https://api.example.com/user/profile
Origin: https://app.example.com
Method: GET
Include Credentials: true

Response headers:

Access-Control-Allow-Origin: https://app.example.com
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, PUT, DELETE
Access-Control-Allow-Headers: Content-Type, Authorization

Result:

✓ CORS ALLOWED
  Origin https://app.example.com explicitly allowed
  Credentials: allowed
  Methods: GET, POST, PUT, DELETE
  Headers: Content-Type, Authorization

Failed Test — Origin Not Allowed

Test input:

URL:    https://api.example.com/data
Origin: https://otherdomain.com

Response headers:

Access-Control-Allow-Origin: https://app.example.com

Result:

✗ CORS BLOCKED
  Requested origin: https://otherdomain.com
  Allowed origin:   https://app.example.com
  
  The origins do not match. The browser will block this response.
  Fix: Add https://otherdomain.com to your allowed origins list.

Failed Test — Missing Credentials Header

Test input:

URL:    https://api.example.com/secure
Origin: https://app.example.com
Include Credentials: true

Response headers:

Access-Control-Allow-Origin: https://app.example.com

Result:

✗ CORS BLOCKED (credentials)
  Access-Control-Allow-Credentials header is missing.
  
  When credentials (cookies, Authorization headers) are included,
  the server must respond with:
    Access-Control-Allow-Credentials: true
  
  Fix: Add this header to your server's CORS configuration.

Failed Test — Wildcard with Credentials

Response headers:

Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

Result:

✗ INVALID CONFIGURATION
  Access-Control-Allow-Origin: * cannot be combined with
  Access-Control-Allow-Credentials: true.
  
  Browsers reject this combination for security reasons.
  Fix: Replace * with the specific allowed origin, e.g.:
    Access-Control-Allow-Origin: https://app.example.com

Preflight Test — OPTIONS Request

Test input:

URL:    https://api.example.com/users
Origin: https://app.example.com
Method: DELETE
Headers: Authorization, Content-Type

Preflight response:

HTTP/1.1 204 No Content
Access-Control-Allow-Origin: https://app.example.com
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Max-Age: 86400

Result:

✓ PREFLIGHT PASSED
  Method DELETE: allowed
  Header Authorization: allowed
  Header Content-Type: allowed
  Preflight cached for: 86400 seconds (24 hours)

HTTP vs HTTPS Origin Mismatch

Allowed origin: https://app.example.com
Request origin: http://app.example.com

✗ CORS BLOCKED — protocol mismatch
  https:// and http:// are treated as different origins.
  Fix: Ensure your application uses HTTPS, or add the HTTP
  origin to your allowed origins list.

Common CORS Issues Detected

Enter any URL and origin to instantly diagnose CORS issues with specific recommendations for fixing each problem found.

Frequently Asked Questions

Simply enter your data, click the process button, and get instant results. All processing happens in your browser for maximum privacy and security.

Yes! CORS Tester is completely free to use with no registration required. All processing is done client-side in your browser.

Absolutely! All processing happens locally in your browser. Your data never leaves your device, ensuring complete privacy and security.