> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-claude-jolly-knuth-otewia.mintlify.site/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.

<Steps>
  <Step title="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](/cdn/quickstart).

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-claude-jolly-knuth-otewia/gCCj1OGaOnsQKJwE/images/cdn/integrations/cms/magento-add-pull-zone.png?fit=max&auto=format&n=gCCj1OGaOnsQKJwE&q=85&s=9499d9d832e6e5ae3e26ea93408b08ba" alt="Creating a Pull Zone for Magento" width="1140" height="224" data-path="images/cdn/integrations/cms/magento-add-pull-zone.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-claude-jolly-knuth-otewia/gCCj1OGaOnsQKJwE/images/cdn/integrations/cms/magento-cors-headers.png?fit=max&auto=format&n=gCCj1OGaOnsQKJwE&q=85&s=7c61cbf742b00529414321222fbd655d" alt="Adding CORS headers to the Pull Zone" width="1041" height="574" data-path="images/cdn/integrations/cms/magento-cors-headers.png" />
    </Frame>
  </Step>

  <Step title="Configure Magento to use the Pull Zone">
    Log in to your Magento admin panel and go to **Stores → Configuration → General → Web**.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-claude-jolly-knuth-otewia/gCCj1OGaOnsQKJwE/images/cdn/integrations/cms/magento-web-config.png?fit=max&auto=format&n=gCCj1OGaOnsQKJwE&q=85&s=00051ba0be8462c0f3a9bfb6760eee4e" alt="Magento Web configuration" width="1550" height="813" data-path="images/cdn/integrations/cms/magento-web-config.png" />
    </Frame>

    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.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-claude-jolly-knuth-otewia/gCCj1OGaOnsQKJwE/images/cdn/integrations/cms/magento-base-urls.png?fit=max&auto=format&n=gCCj1OGaOnsQKJwE&q=85&s=ff56e1549b3a6c519b1e077aa87b4b82" alt="Setting the Base URLs" width="1505" height="848" data-path="images/cdn/integrations/cms/magento-base-urls.png" />
    </Frame>

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

  <Step title="Flush the Magento cache">
    Flush your Magento cache as prompted by the settings dashboard.
  </Step>
</Steps>

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