Executive summary
- What: Shopify added a network_access section to shopify.app.toml where an app declares the external sites it links shoppers to and the external origins its own code loads from or calls.
- Why: Declared navigation hosts skip the interstitial warning Shopify shows before sending a shopper off the storefront, and the declared source list gives Shopify a baseline for spotting requests your app never made.
- Who: Any app whose code runs on a storefront, checkout, or admin page, which on a Plus store means most of the installed app stack.
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
- Marketers: links from app blocks to owned domains stop showing the leaving-the-store warning once declared, so any funnel handing off to a vendor domain loses a drop-off point. Re-measure rather than assuming the lift.
- Developers: add the section, then audit every script src and fetch call across your extensions, app home, and proxy routes. Omitting a legitimate origin does not break the app today, but it weakens the signal Shopify uses to defend it, and it will read as a gap in the next security review.
- Store admins: ask each app vendor whether they have declared their hosts and sources, and keep the answers. Vendors who cannot tell you which external services their code contacts are the ones worth a closer look.
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
- Inventory every external origin your own app and extensions load from or call on storefront, checkout, and admin pages.
- Add allowed_navigation_hosts for hosts you control and link shoppers to, entered exactly as they appear in your links, up to 20.
- Add allowed_sources as HTTPS origins, up to 20, leaving out Shopify-served assets and your app proxy URL.
- Confirm any checkout UI extension that calls fetch still declares the network_access capability in its own shopify.extension.toml.
- 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.