Networks

How to understand a CORS header in a test response

CORS uses HTTP fields to inform a browser about cross-origin access conditions. Suggested headers do not confirm that an application is configured.

Before you start

Text is processed in the browser. Consider the content before using it and read the privacy policy.

Privacy

How to use it

  1. In the CORS generator, enter https://app.example.com as origin, GET as the method and leave additional headers empty.

  2. Generate and check Access-Control-Allow-Origin and Vary: Origin.

  3. In the header analyzer, enter those two fictional lines and check the available description.

CORS Generator

Worked example

The generator produces origin https://app.example.com, method GET and Vary: Origin. The analyzer recognizes Vary but reports that Access-Control-Allow-Origin is not cataloged.

Result: a specific origin and GET are generated; no server is changed.

Fetch Standard: CORS

Limits and checks

The example does not use credentials. The analyzer does not validate CORS policy and the generator does not send requests or configure a server; review the specification and test the application in the appropriate environment.

Next step

To analyze other fields in text, see the HTTP header guide.

How to analyze HTTP headers copied as text
Back to the blog