See all services → Shopify Plus Partner
Platform Developer

Declare App Network Access in Your Shopify App Config

Shopify added a network_access section to shopify.app.toml where apps declare the external hosts they link to and the origins their code calls. Declared hosts skip the exit warning shown to shoppers.

Executive summary

What changed

The section carries two properties, each capped at 20 entries. allowed_navigation_hosts lists the external sites an app links customers to from the online store, written exactly as they appear in the markup, and only hosts the publisher controls. allowed_sources lists HTTPS origins the app's code loads from or calls across storefront, checkout, and admin surfaces, covering theme app extensions, app home, and app proxy pages.

Two exclusions matter in practice. Anything Shopify serves stays off the list, including files in a theme app extension assets folder, and so does the app proxy URL, because the store serves proxy pages from its own domain. Checkout UI extensions that call fetch still need the separate network_access capability in their own shopify.extension.toml. Declarations take effect after shopify app deploy and a released version.

Why it matters

The first effect is on conversion paths. Shopify warns shoppers before sending them to a site outside the storefront, so every app link that leaves the store carries an extra confirmation step. Declaring the host removes it, which matters for review pages, loyalty portals, and vendor-hosted journeys.

The second effect is detection. Once Shopify knows which origins an app legitimately calls, requests to anything else read as anomalies, a reference point the platform did not have before. The third is the one enterprise teams will use soonest: the declarations double as a readable inventory of every external endpoint touching your storefront and checkout, the artifact PCI scoping and vendor security reviews usually lack. Teams building their own surfaces should fold it into the same review, since a custom Shopify app typically calls several internal services from storefront and admin pages.

Role-specific impact

Use-case example

Real-world scenario

A Plus apparel merchant runs a reviews app whose theme block links to a review page on the vendor's own domain and loads a widget from the vendor CDN. Before declaration, every shopper clicking that link met the exit warning. On a product page set carrying roughly 40,000 monthly sessions with a 3 percent click rate, that is about 1,200 shoppers a month hitting a confirmation step they did not ask for. The same deploy lists the vendor CDN and API origins, so a future theme release that quietly calls an undeclared domain stands out instead of blending in.

Implementation checklist

  1. Inventory every external origin your own app and extensions load from or call on storefront, checkout, and admin pages.
  2. Add allowed_navigation_hosts for hosts you control and link shoppers to, entered exactly as they appear in your links, up to 20.
  3. Add allowed_sources as HTTPS origins, up to 20, leaving out Shopify-served assets and your app proxy URL.
  4. Confirm any checkout UI extension that calls fetch still declares the network_access capability in its own shopify.extension.toml.
  5. Run shopify app deploy and release the new version, then click a declared link to confirm the interstitial is gone.

FAQ

Q: Does leaving the section out break our app?

A: No. This is a recommendation, not an enforcement gate today. The cost of skipping it is the exit warning on your own links and a weaker baseline for detecting traffic your app never generated.

Q: Does this replace a content security policy?

A: No. A CSP is enforced by the browser and blocks what you did not permit. This list is a declaration Shopify uses for monitoring and for the navigation warning. Treat them as complementary.

Resources

Declare your app's network access

Need guidance? Talk to Makro.