> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-claude-slack-session-t7p5ro.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-slack-session-t7p5ro/KwQrII7tl4x7JZin/images/cdn/integrations/cms/magento-add-pull-zone.png?fit=max&auto=format&n=KwQrII7tl4x7JZin&q=85&s=8b5d3ddfd631549a6d90b664b515b6e5" 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-slack-session-t7p5ro/KwQrII7tl4x7JZin/images/cdn/integrations/cms/magento-cors-headers.png?fit=max&auto=format&n=KwQrII7tl4x7JZin&q=85&s=43bc0b1934e1527fb5f2ef56e01400ec" 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-slack-session-t7p5ro/KwQrII7tl4x7JZin/images/cdn/integrations/cms/magento-web-config.png?fit=max&auto=format&n=KwQrII7tl4x7JZin&q=85&s=d31c09a0576c101448b8648ed083370a" 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-slack-session-t7p5ro/KwQrII7tl4x7JZin/images/cdn/integrations/cms/magento-base-urls.png?fit=max&auto=format&n=KwQrII7tl4x7JZin&q=85&s=f18c6e3a430afc89c77b9d91a373c592" 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.
