A simple header (or CORS-safelisted request header) is one of the following HTTP headers:
- {{HTTPHeader("Accept")}},
- {{HTTPHeader("Accept-Language")}},
- {{HTTPHeader("Content-Language")}},
- {{HTTPHeader("Content-Type")}} with a MIME type of its parsed value (ignoring parameters) of either
application/x-www-form-urlencoded
,multipart/form-data
, ortext/plain
.
Or one of these client hint headers:
- {{HTTPHeader("DPR")}}
- {{HTTPHeader("Downlink")}}
- {{HTTPHeader("Save-Data")}}
- {{HTTPHeader("Viewport-Width")}}
- {{HTTPHeader("Width")}}
When containing only simple headers, a requests is deemed simple and doesn't need to send a {{glossary("preflight request")}} in the context of CORS.
Learn more
- HTTP headers
- {{Glossary("Simple response header")}}
- {{Glossary("Forbidden header name")}}
- {{Glossary("Request header")}}