> 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/security/origin-basic-authentication.md).

# Origin Basic Authentication

Origin Basic Authentication allows the CDN to authenticate requests to your origin server using HTTP Basic Authentication credentials.

When enabled, the CDN includes the configured username and password in every origin request. This allows access to origins protected by HTTP Basic Authentication without exposing credentials to clients.

{% hint style="info" %}
Origin Basic Authentication affects only requests sent from the CDN to your origin server. It does not change viewer requests or responses.
{% endhint %}

### Configure Origin Basic Authentication

In the [Medianova Control Panel](https://cloud.medinaova.com), select your Dynamic CDN Resource and open the **Security** tab

<figure><img src="/files/9mPs8nDruuvoEHBCGoFA" alt=""><figcaption></figcaption></figure>

See: [API Reference](/api-documentation/security/origin-basic-authentication.md) – Origin Basic Authentication

{% stepper %}
{% step %}

### Enable the Feature

Enable the **Status** toggle.
{% endstep %}

{% step %}

### Enter Origin Credentials

Provide the username and password configured on your origin server for HTTP Basic Authentication.
{% endstep %}

{% step %}

### Save the Configuration

Click **Submit** to deploy the updated configuration.
{% endstep %}
{% endstepper %}

### How It Works

When Origin Basic Authentication is enabled:

* The CDN authenticates to your origin using the configured HTTP Basic Authentication credentials.
* Authentication is performed for origin requests only.
* Clients never receive or see the configured credentials.
* Every origin fetch uses the configured username and password until the feature is disabled or the credentials are updated.

### Important Notes

* The configured username and password must match the credentials expected by your origin server.
* Incorrect credentials may cause origin requests to fail with authentication errors.
* Viewer requests are not modified.
* Credentials are used only for communication between the CDN and the origin server.


---

# 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, and the optional `goal` query parameter:

```
GET https://clients.medianova.com/products/security/origin-basic-authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
