lookup> Access-Control-Allow-Origin

Access-Control-Allow-Origin

indicates whether a resource can be shared

响应头CORS
NameAccess-Control-Allow-Origin
Type响应头
SpecificationCORS

indicates whether a resource can be shared

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

CORS

What does the Access-Control-Allow-Origin header do?

indicates whether a resource can be shared

Is Access-Control-Allow-Origin a request or response header?

It is classified as a response header and can appear in requests or responses depending on context.

Related status codes

About This Tool

This page provides original, human-reviewed information about HTTP headers such as Access-Control-Allow-Origin, the HTTP Header Reference and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.