> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-docs-dns-cli-tabs-and-scriptable-types.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-docs-dns-cli-tabs-and-scriptable-types/OE7gQUYbaqy-Lyb7/images/cdn/integrations/cms/magento-add-pull-zone.png?fit=max&auto=format&n=OE7gQUYbaqy-Lyb7&q=85&s=8e98ae105f0c1389f3eb8ee014488155" 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-docs-dns-cli-tabs-and-scriptable-types/OE7gQUYbaqy-Lyb7/images/cdn/integrations/cms/magento-cors-headers.png?fit=max&auto=format&n=OE7gQUYbaqy-Lyb7&q=85&s=4cba3424a367501d98a10a1166d5410d" 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-docs-dns-cli-tabs-and-scriptable-types/OE7gQUYbaqy-Lyb7/images/cdn/integrations/cms/magento-web-config.png?fit=max&auto=format&n=OE7gQUYbaqy-Lyb7&q=85&s=e25a46bb3333d295118af21eee53713a" 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-docs-dns-cli-tabs-and-scriptable-types/OE7gQUYbaqy-Lyb7/images/cdn/integrations/cms/magento-base-urls.png?fit=max&auto=format&n=OE7gQUYbaqy-Lyb7&q=85&s=5a3f6472420660c665784dd7fa17fb89" 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.
