> ## Documentation Index
> Fetch the complete documentation index at: https://bunny.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Magento

> Integrate bunny.net CDN with your Magento store for faster page loads and optimized e-commerce performance.

This guide walks you through serving your Magento store's static and media files through Bunny CDN in four steps.

**1. Create a Pull Zone**

Log in to your [bunny.net dashboard](https://dash.bunny.net) and create a new Pull Zone with your Magento store as the origin URL. Match the protocol (HTTP or HTTPS) of your site exactly. For details, see [How to create your first Pull Zone](/docs/cdn/quickstart.md).

![Creating a Pull Zone for Magento](https://mintcdn.com/bunnynet-cb9733c2/1bTPx1eyQm8EK8W3/images/cdn/integrations/cms/magento-add-pull-zone.png?fit=max\&auto=format\&n=1bTPx1eyQm8EK8W3\&q=85\&s=ff29792d0bdfe17135eccc7c998c55e4)

**2. Add the required CORS headers**

Open your Pull Zone's **Headers** settings and add the `html` and `json` extensions. This is required, otherwise your Magento admin interface won't work correctly.

![Adding CORS headers to the Pull Zone](https://mintcdn.com/bunnynet-cb9733c2/1bTPx1eyQm8EK8W3/images/cdn/integrations/cms/magento-cors-headers.png?fit=max\&auto=format\&n=1bTPx1eyQm8EK8W3\&q=85\&s=e366e8ea24143eaa2f797d6d940703bd)

**3. Configure Magento to use the Pull Zone**

Log in to your Magento admin panel and go to **Stores → Configuration → General → Web**.

![Magento Web configuration](https://mintcdn.com/bunnynet-cb9733c2/1bTPx1eyQm8EK8W3/images/cdn/integrations/cms/magento-web-config.png?fit=max\&auto=format\&n=1bTPx1eyQm8EK8W3\&q=85\&s=14590e95aacb988709c71f5edbe1b90f)

Open the **Base URLs** tab and enter your Pull Zone hostname in both **Base URL for Static View Files** and **Base URL for User Media Files**, including the `/static/` and `/media/` subfolders respectively.

![Setting the Base URLs](https://mintcdn.com/bunnynet-cb9733c2/1bTPx1eyQm8EK8W3/images/cdn/integrations/cms/magento-base-urls.png?fit=max\&auto=format\&n=1bTPx1eyQm8EK8W3\&q=85\&s=de5941d8d3ffff8bd5e099d2530a0bed)

Repeat the same values in the **Base URLs (Secure)** section, using the `https://` version of the URL to avoid connectivity issues. Click **Save Config**.

**4. Flush the Magento cache**

Flush your Magento cache as prompted by the settings dashboard.

Your Magento store is now serving static and media files through Bunny CDN.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.