Skip to content

X‐Content‐Type‐Options

Marthijn van den Heuvel edited this page Aug 19, 2024 · 3 revisions

The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised in the Content-Type headers should be followed and not be changed. The header allows you to avoid MIME type sniffing by saying that the MIME types are deliberately configured.

Usage

app.UseXContentTypeOptions();

References

Clone this wiki locally