Quick answer: If your Shopify public app—or a custom app installed outside your organization—runs code on the online store through a theme app extension, script tag, app proxy, write_themes, or an open web pixel, add a [network_access] section to shopify.app.toml, test it on a dedicated dev store, then deploy and release the new version. From December 1, 2026, Shopify will reject affected deploys; public apps can also face rejected App Store submissions and an admin warning.[1]
[network_access]
allowed_sources = [
"https://api.example.com",
"https://cdn.example.com"
]
allowed_navigation_hosts = [
"app.example.com"
]
Replace the example domains with hosts your storefront code actually uses. If the app is in scope but contacts no external server from the online store, declare allowed_sources = []; Shopify says an empty list counts.[1][2]
December 1 and January 1 deadlines
For public apps, Shopify says undeclared in-scope apps will have deploys and App Store submissions rejected on December 1, 2026, while existing versions continue working. On January 1, 2027, Shopify says affected public apps can be delisted and blocked from new installs, although existing installs continue working.[1]
For custom apps installed on stores outside your organization, deploys can be rejected from December 1. From January 1, installs outside your organization can be blocked until every in-scope app has declared its network access.[1]
This is separate from Shopify’s November IP allowlist requirement. If you maintain a public app, check both controls rather than treating one as a substitute for the other. See the earlier Shopify IP allowlist setup checklist for that migration.
Does your app need a network access declaration?
Add allowed_sources when a public app or externally installed custom app uses at least one of these storefront features:[1][2]
- a theme app extension block or app embed;
- script tags on the online store;
- an app proxy;
- the
write_themesaccess scope; or - a web pixel with the
write_open_pixelsscope.
Shopify says apps that only write content such as products, menus, or metafields are unaffected. A checkout UI extension alone does not trigger this storefront declaration, custom apps used only inside your organization are unaffected, and web pixels in the default strict sandbox are excluded.[1][2]
Fast decision check
- Search your app configuration and code for theme app extensions, script tags, app proxies,
write_themes, andwrite_open_pixels.[2] - If none are present, document why the app is out of scope and re-check when its storefront features change.[2]
- If any are present, inventory every external HTTPS origin contacted by code running on the online store.[2]
- Add an empty declaration even when an in-scope app makes no external request.[1][2]
- Test, deploy, release, and keep the change in source control.[1][2]
Build the correct allowed_sources list
allowed_sources is for external servers that storefront code loads from or sends requests to. Common examples are an API origin, CDN, analytics collector, image host, or a third-party endpoint called directly by the app’s storefront JavaScript.[2]
Use lowercase HTTPS origins with no path or trailing slash. Shopify’s configuration reference permits up to 30 entries and supports a leading wildcard for subdomains, but the wildcard does not cover the bare host itself.[2]
[network_access]
allowed_sources = [
"https://api.example.com",
"https://cdn.example.com",
"https://*.media.example.com"
]
Do not add:
- URLs used only by App Home or other Shopify admin pages;[2]
- files Shopify serves from a theme extension’s
assetsdirectory;[2] - the storefront app-proxy URL itself, because Shopify serves that page from the store domain;[2]
- paths such as
https://api.example.com/v1;[2] - a trailing slash;[2]
localhost, IP addresses, Shopify-owned domains, or broad shared domains such ashttps://s3.amazonaws.com.[2]
For a service on a shared provider, use the specific host assigned to your app, such as a bucket-specific hostname, rather than the provider-wide domain.[2]
allowed_navigation_hosts is different
allowed_navigation_hosts is optional. It lists trusted external hosts customers can follow from the online store without Shopify’s exit interstitial; entries are hostnames without https://, paths, ports, or wildcards.[1][2]
[network_access]
allowed_navigation_hosts = [
"app.example.com",
"help.example.com"
]
Only list hosts you control or trust. Shopify warns against link shorteners and file-sharing hosts where other users can publish content or create redirects.[2]
A simple rule:
- Code loads from or sends data to it: put the HTTPS origin in
allowed_sources.[2] - A customer clicks a storefront link to it: put the hostname in
allowed_navigation_hosts.[2] - Both happen: add the correctly formatted value to both lists.[2]
How to find every required origin
Start with a repository search, then verify in a browser. Search Liquid, JavaScript, TypeScript, CSS, extension configuration, and proxy-rendered HTML for https://, fetch(, WebSocket, script src, image hosts, fonts, analytics, and dynamically assembled URLs.
Useful commands:
rg -n "https://|fetch\(|WebSocket|script.*src|img.*src" extensions app src
rg -n "app_proxy|write_themes|write_open_pixels|network_access" .
Do not blindly copy every match into the declaration. Exclude admin-only calls and URLs used by build tools, tests, server-to-server jobs, or documentation. The list should describe what code on the online store actually contacts.[2]
If your storefront loads Google Fonts, Shopify’s testing guide specifically says to add both https://fonts.googleapis.com and https://fonts.gstatic.com even though the browser console does not warn about them.[2]
Test without false confidence
Create a fresh Shopify dev store with the Network access testing feature preview, then run your app against that store:[2][3]
shopify app dev --store your-dev-store.myshopify.com
Keep other apps off this test store. Shopify combines the declarations of installed apps into one policy, so another app can accidentally hide a host missing from your own list.[2]
Enable every theme app block and app embed, open the storefront at its real myshopify.com address, and use every feature while the browser developer console is open. Do not rely on the theme editor preview or the local 127.0.0.1 preview because Shopify does not add the test policy there.[2]
Confirm the storefront response includes a Content-Security-Policy-Report-Only header. In the current preview, undeclared requests generate console warnings rather than being blocked, and undeclared navigation can show an exit warning.[2][3]
After each fix, let shopify app dev update the preview and repeat the test.[2] Exercise lazy-loaded widgets, error paths, account links, chat connections, analytics calls, and features that appear only after consent or login.
Deploy and verify the production version
When testing is clean, deploy the configuration and release the new app version:
shopify app deploy
Shopify applies local configuration automatically during app dev, but production stores receive it only after you deploy and release a version containing the change.[2]
Use this release checklist:
- [ ]
[network_access]exists in the productionshopify.app.toml. - [ ] Every
allowed_sourcesentry is a lowercase HTTPS origin with no path or trailing slash.[2] - [ ]
allowed_navigation_hostscontains hostnames only.[2] - [ ] An in-scope app with no external requests uses
allowed_sources = [].[1][2] - [ ] A clean dev store test produced no unexplained network warnings.[2][3]
- [ ] The configuration was committed to source control.
- [ ]
shopify app deploycompleted and the new version was released. - [ ] The team recorded the December 1, 2026 and January 1, 2027 enforcement dates.[1][2]
Common mistakes
Adding a full URL to allowed_navigation_hosts
Wrong: https://help.example.com/docs. Correct: help.example.com. Navigation entries are hosts, not URLs.[2]
Adding a path to allowed_sources
Wrong: https://api.example.com/v1. Correct: https://api.example.com. Source entries are HTTPS origins.[2]
Assuming a wildcard covers the root host
https://*.example.com covers subdomains but not https://example.com. Add both when the storefront contacts both.[2]
Testing with several apps installed
A declaration from another app can mask your missing entry because Shopify merges the lists for the test policy. Use a dedicated dev store.[2]
Editing TOML without releasing a new version
Local testing is not production rollout. Deploy and release the app version so the declaration applies to installed stores.[2]
FAQ
What happens on December 1, 2026?
Shopify says affected public apps without the declaration will have deploys and App Store submissions rejected, and merchants will see an admin warning. Affected externally installed custom apps will have deploys rejected.[1]
Will existing app installations stop working on December 1?
No. Shopify’s announced timeline says existing app versions continue working at the December 1 enforcement point.[1]
What if my app calls no external server?
If the app is in scope, set allowed_sources = []. Shopify explicitly treats the empty list as a valid declaration.[1][2]
Is allowed_navigation_hosts mandatory?
No. It is optional and is used for trusted destinations customers navigate to from the online store.[1][2]
Does this replace the Shopify IP allowlist?
No. Network access declarations describe storefront-origin traffic, while the earlier IP allowlist requirement controls where an app can invoke Shopify’s Admin API. Treat them as separate security tasks.
Can I test in the Shopify theme editor preview?
Not reliably. Shopify says the test policy is not added to theme previews; test at the dev store’s myshopify.com storefront and check for the report-only CSP header.[2]
Sources
- Network access declarations are now required for apps that run on the online store — Shopify official documentation.
- Declare your app’s network access — Shopify official documentation.
- Test app network access configuration on dev stores — Shopify official documentation.