> 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-cdn-header.md).

# X-CDN Header

Learn how the X-CDN Header adds CDN-specific information to origin requests in the Medianova Control Panel.

**X-CDN Header** adds a generated token to requests sent from the CDN to your origin. Your origin can use this value to distinguish CDN-proxied requests from requests that reach the origin directly.

You can configure X-CDN Header 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-2).

## Configure X-CDN Header

{% stepper %}
{% step %}

### Open X-CDN Header

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

Locate the **X-CDN Header** section.
{% endstep %}

{% step %}

### Enable X-CDN Header

Enable **X-CDN Header**.
{% endstep %}

{% step %}

### Generate a Token

Click **Generate** next to **Token**.

The generated token is used in the `X-CDN` header added to requests sent from the CDN to your origin.

{% hint style="info" %}
Configure your origin to validate the generated token if you want to use the X-CDN Header to verify that a request was forwarded through Medianova CDN.
{% endhint %}
{% endstep %}

{% step %}

### Save the Configuration

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

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

## How X-CDN Header Works

When X-CDN Header is enabled, the CDN adds the `X-CDN` header to requests forwarded to your origin.

Your origin can inspect the header and its token to identify requests forwarded through Medianova CDN.

{% hint style="warning" %}
The presence of the `X-CDN` header alone should not be treated as verification. Validate the header value against the configured token when using it for origin-side access control or request verification.
{% endhint %}


---

# 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-cdn-header.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.
