Skip to content

Shopify Dude Fix

Shopify App Network Access Warnings on Dev Stores: Test allowed_sources Before Release

Use Shopify’s November 2026 network_access_testing preview to catch unlisted storefront hosts and unexpected navigation warnings before deploying an app.

Quick answer: Create a development store with the network_access_testing feature preview, then test every external link and storefront request against your app’s [network_access] declarations. The preview warns about unlisted sources; it does not block requests.
On this page

Why this happens

Older storefront app patterns assume that if an injected script or link works in the browser, the host is correctly declared. Shopify introduced a November 4, 2026 preview to make omissions visible. Missing allowed_navigation_hosts can trigger exit warnings for links, while requests to hosts absent from allowed_sources generate browser console warnings.

Fix the implementation

  1. Review the app’s shopify.app.toml [network_access] section.
  2. List every external endpoint used by the storefront integration: API hosts, analytics collectors, asset servers, support portals and redirect destinations.
  3. Create a development store with the network_access_testing feature preview enabled.
  4. Install the app and exercise the storefront flows that actually invoke those hosts.
  5. Add legitimate destinations to the appropriate setting; remove unused hosts rather than approving entire domains reflexively.
  6. Repeat on desktop and mobile, including error paths, region redirects and third-party callbacks.

Practical example

Keep navigation destinations separate from request destinations. A link to an external help center belongs in the navigation review; a JavaScript fetch() to a service endpoint belongs in the sources review. Audit both when one user action opens a page and sends telemetry.

Common misunderstanding: The preview’s console warning is not proof that Shopify has blocked the request. Conversely, a successful request in the preview does not mean the declaration is complete.
How to test this

  1. Open a storefront page that calls a declared API host; verify no unexpected warning.
  2. Temporarily use an undeclared test host; confirm the console warning appears.
  3. Click an undeclared external navigation link and observe the exit warning.
  4. Restore the intended declarations, reload and verify the warnings disappear.
  5. Check all storefront templates and geographic variants before shipping.