> 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

Learn how the X-Content-Type-Options header prevents MIME sniffing and enforces strict content-type handling in the browser.

**X-Content-Type-Options** adds the `X-Content-Type-Options` header to viewer-facing responses. When enabled, browsers that support this header use the declared `Content-Type` instead of attempting to infer the content type from the response body.

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

{% hint style="info" %}
Your origin must still provide the correct `Content-Type` value. X-Content-Type-Options does not correct an incorrect content type; it prevents browsers from overriding the declared value through MIME sniffing.
{% endhint %}

## Configure X-Content-Type-Options

{% stepper %}
{% step %}

### Open X-Content-Type-Options

Open your CDN Resource and select **Headers**.

Locate the **X-Content-Type-Options** section.
{% endstep %}

{% step %}

### Enable X-Content-Type-Options

Enable **X-Content-Type-Options**.

When enabled, the CDN adds the following header to viewer-facing responses:

```http
X-Content-Type-Options: nosniff
```

{% endstep %}

{% step %}

### Save the Configuration

Click **Save** in the pending changes bar.

Review the pending changes and confirm the update.
{% endstep %}
{% endstepper %}

## Behavior

When X-Content-Type-Options is enabled:

* The CDN adds `X-Content-Type-Options: nosniff` to viewer-facing responses.
* Supporting browsers use the `Content-Type` declared by the server instead of attempting to infer a different content type from the response body.
* The setting does not modify the `Content-Type` value itself.
* The setting affects viewer-facing responses only and does not affect origin requests or CDN caching behavior.

When X-Content-Type-Options is disabled, the CDN does not add this header through this feature.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
