> For the complete documentation index, see [llms.txt](https://clients.medianova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clients.medianova.com/products/performance-cdn/static-content-delivery/advanced-configuration/headers/x-content-type-options.md).

# X-Content Type Options

The X-Content-Type-Options feature adds the `X-Content-Type-Options` header to viewer responses. This header instructs compatible browsers not to perform MIME sniffing and to rely strictly on the `Content-Type` declared by the server. Disabling MIME sniffing helps reduce exposure to certain injection and cross-site scripting (XSS) vectors.

{% hint style="info" %}
The feature does not modify origin requests or CDN caching behavior.
{% endhint %}

### How X-Content-Type-Options Works

You can configure X-CDN Header in the [Medianova Control Panel](https://cloud.medianova.com) or via [API](https://clients.medianova.com/api-documentation/performance-cdn/headers#put-api-v1-cdn-organization_uuid-resource-resource_uuid-6)

When enabled:

* The CDN adds the following header to viewer-facing responses:

  ```
  X-Content-Type-Options: nosniff
  ```
* Browsers that support this header will not attempt to infer content types and will instead enforce the value provided by the origin.
* MIME sniffing is disabled for resources such as scripts, stylesheets, and other content types that could be misinterpreted.

<figure><img src="/files/7OLnDjGCAcRiLhIZX5Mh" alt=""><figcaption><p>X-Content-Type-Options toggle inside the Headers tab</p></figcaption></figure>

### Use Cases

#### Prevent MIME sniffing

Ensure the browser does not guess content types, avoiding scenarios where a file may be interpreted as executable code.

#### Improve XSS resilience

Reduce attack surfaces where incorrect content-type interpretation could lead to script execution.

#### Enforce strict content handling

Guarantee consistent behavior across browsers by ensuring content is processed exactly as declared.

### Notes

* The header is applied only to **viewer responses**, not to origin-bound requests.
* Modern browsers widely support `nosniff`, but legacy browsers may behave inconsistently.
* Enabling this header does not alter your CDN caching logic.
* Correct MIME types must still be set by your origin; this header does not correct misconfigured content types.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://clients.medianova.com/products/performance-cdn/static-content-delivery/advanced-configuration/headers/x-content-type-options.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
