Skip to content
Let's talk
Shopify Guides

Shopify's New Security Rules for Public Apps: IP Allowlists, Expiring Tokens and the 2027 Deadlines

Shopify is tightening how public apps reach store data. Admin API calls must come from addresses the app declares, offline access tokens must expire and refresh, and storefront code must declare where it loads from. Two deadlines have already passed. Here is each rule, its date, and a plan to finish before Admin API requests start failing on April 1, 2027.

Last reviewed


Shopify's security deadlines for public appsExpiring offline tokens for new public apps from April 1, 2026; bulk operations blocked without an IP allowlist from November 12, 2026; apps without an allowlist delisted from November 20, 2026; network access declared from December 1, 2026; expiring tokens for every public app by January 1, 2027; Admin API requests fail from April 1, 2027.Apr 1, 2026New publicapps: expiringtokensNov 12, 2026Bulk operationsneed anallowlistNov 20, 2026No allowlist:delisted, nonew installsDec 1, 2026Storefront codedeclares itshostsJan 1, 2027Every publicapp on expiringtokensApr 1, 2027Admin APIrequests fail
Shopify's security deadlines for public appsExpiring offline tokens for new public apps from April 1, 2026; bulk operations blocked without an IP allowlist from November 12, 2026; apps without an allowlist delisted from November 20, 2026; network access declared from December 1, 2026; expiring tokens for every public app by January 1, 2027; Admin API requests fail from April 1, 2027.Apr 1, 2026New public apps: expiring tokensNov 12, 2026Bulk operations need an allowlistNov 20, 2026No allowlist: delisted, no newinstallsDec 1, 2026Storefront code declares its hostsJan 1, 2027Every public app on expiring tokensApr 1, 2027Admin API requests fail
The deadlines for public apps, from Shopify's developer docs
On this page

What Shopify is changing, and why it matters now

Shopify is changing how public apps reach store data. There are three rules, and they share one aim: a leaked access token should be worth very little to whoever finds it. Admin API calls must come from addresses the app declares, offline access tokens must expire and be renewed, and code the app puts on a storefront must declare where it loads from. Alongside them, Shopify's CLI now has a security check for your app's code.

This guide covers public apps: apps distributed to many merchants through the Shopify App Store or install links. Custom apps follow a different timeline, which we cover in Shopify's new security rules for custom apps.

Four layers of Shopify's new app securityShopify's new rules limit where Admin API calls may come from (IP allowlists), how long access lasts (expiring offline tokens), where storefront code loads from (network access), and what the app's code does (the app security check).Where calls come fromIP allowlist: Admin API requests only from addresses you listHow long access lastsExpiring offline tokens: one hour, renewed with a refresh tokenWhere storefront code loads fromNetwork access: hosts declared in shopify.app.tomlWhat the code doesApp security check: 37 checks before every release
Four layers of Shopify's new app securityShopify's new rules limit where Admin API calls may come from (IP allowlists), how long access lasts (expiring offline tokens), where storefront code loads from (network access), and what the app's code does (the app security check).Where calls come fromIP allowlist: Admin API requests onlyfrom addresses you listHow long access lastsExpiring offline tokens: one hour,renewed with a refresh tokenWhere storefront code loads fromNetwork access: hosts declared inshopify.app.tomlWhat the code doesApp security check: 37 checks beforeevery release
What each of the new rules limits.

Two of the dates have already passed. Since November 12, 2026, bulk operations from public apps without an IP allowlist are blocked. Since November 20, 2026, public apps without an allowlist are delisted from the App Store, can't be installed by new merchants, and are flagged to merchants in Settings > Apps. Existing installs keep working for now, which is why many teams haven't noticed yet.

The dates for public apps

Shopify's security deadlines for public apps, as published on shopify.dev
DateWhat happensRule
April 1, 2026New public apps must use expiring offline access tokensExpiring tokens
November 12, 2026Bulk queries and mutations are blocked for apps without an IP allowlistIP allowlist
November 20, 2026Apps without an IP allowlist are delisted, blocked from new installs and flagged in Settings > AppsIP allowlist
December 1, 2026Apps that put code on the storefront must declare allowed sourcesNetwork access
January 1, 2027Apps still on non-expiring offline tokens are delisted and blocked from new installsExpiring tokens
January 15, 2027Merchants see a warning in their admin about apps that missed either ruleBoth
April 1, 2027Admin API requests fail: from addresses outside the allowlist, and with non-expiring tokens (403)Both

Delisting is the cost teams tend to underestimate. A delisted app keeps the merchants it has, but it stops growing, and from April 1, 2027 those merchants' stores stop answering its API calls. Shopify says plainly that the later dates are not extra time to migrate.

IP allowlists: declare where your API calls come from

In the Dev Dashboard you list the addresses your app's servers use to call the GraphQL and REST Admin APIs. Once you enforce the list, Shopify rejects any request made with your app's tokens from anywhere else, with a 403.

What you can list

  • Up to 250 IP addresses or CIDR ranges, one per line. IPv4 ranges can be /16 or narrower and IPv6 ranges /32 or narrower. Public addresses only, and each range starts at its network address.
  • Up to 10 autonomous system numbers (ASNs), for apps whose outbound addresses change inside one provider's network.
  • Up to 10 countries, which only narrow your ASN entries. They don't allow traffic on their own and don't narrow IP addresses.

Two practical warnings. If your servers sit behind a NAT gateway, Shopify sees the gateway's address, not the server's, so list the gateway. And if your hosting sends any traffic over IPv6, list those addresses too, or a share of your requests will fail the day you enforce.

ASNs are convenient for serverless hosting, but a large provider's network is shared with many of its other customers. An ASN entry lets any server on that network use a token that leaks, so we use fixed addresses wherever the hosting allows them, and narrow any ASN to the countries the app runs in.

What the allowlist doesn't cover

Some requests are never rejected: dev preview requests on development stores, and direct API access from embedded app pages, admin UI extensions and POS UI extensions. Two kinds of request can't pass an allowlist at all, because Shopify can't confirm where they come from: tokens used by Shopify Flow's Send HTTP request action, and GraphQL Admin API requests from a storefront hosted on Oxygen. If your app depends on either, change that before you enforce.

An app that never calls the Admin API with its own tokens, such as an extension-only app, can choose to block those requests from every address instead. That meets the requirement, and a blocked request returns a 403 that says the app blocks all Admin API requests made with its access tokens.

Setting it up

Setting up a Shopify IP allowlistList every outbound address that calls the Admin API, enter the addresses or ASNs in the Dev Dashboard, test them against the last 30 days of traffic, turn on enforcement, then confirm that a request from an unlisted address fails with a 403.01List addressesServers, workers,jobs02Enter themDev Dashboard,Settings03Test 30 daysSee what wouldfail04EnforceTurn it on andsave05VerifyA 403 fromoutside
Setting up a Shopify IP allowlistList every outbound address that calls the Admin API, enter the addresses or ASNs in the Dev Dashboard, test them against the last 30 days of traffic, turn on enforcement, then confirm that a request from an unlisted address fails with a 403.01List addressesServers, workers, jobs02Enter themDev Dashboard, Settings03Test 30 daysSee what would fail04EnforceTurn it on and save05VerifyA 403 from outside
  1. List every outbound address. Web servers, background workers, queue consumers, scheduled jobs and any outside service that calls the Admin API with your tokens.
  2. Enter them in the Dev Dashboard: open the app, go to Settings and choose Manage next to IP allowlist.
  3. Test against recent traffic. The dashboard checks your entries against the last 30 days of requests and shows what would have been blocked. Adjust and test again until nothing of yours fails.
  4. Turn on Enforce IP allowlist and save. Turning it off later keeps your list.
  5. Verify from outside. Send a GraphQL Admin API request with a valid token from an address that isn't listed, and confirm it fails with a 403.

The 30-day test is where the surprises appear: a scheduled job on a server nobody listed, a reporting worker on another host, a script on a developer's laptop that still uses production tokens. Each one is a reason to run the test before you enforce, not after.

Expiring offline tokens: access that lasts an hour

An offline access token is the one an app uses when no merchant is signed in: syncs, webhooks, scheduled jobs. Until now it never expired. Under the new rules it lasts 1 hour, and the app renews it with a refresh token that lasts 90 days. Every refresh returns a new access token and a new refresh token, and the app stores both.

The old refresh token doesn't die the moment you use it. It stays usable until the earliest of: your app refreshing with the newer one, your app getting a new token through token exchange or the authorization code grant, 30 days after its first use, or its own 90-day expiry. That grace is what lets a refresh be retried after a network failure without locking the store out.

How an expiring offline token is renewedThe app gets an access token that lasts one hour and a refresh token that lasts 90 days, refreshes before the access token expires, stores the new pair in one write, and sends the merchant back through the app if a refresh fails.Get the pairInstall ortoken exchangeUse for 1hourAdmin APIcallsRefreshearly90-day refreshtokenStore bothOne write perstoreIf it failsMerchantreopens theapp
How an expiring offline token is renewedThe app gets an access token that lasts one hour and a refresh token that lasts 90 days, refreshes before the access token expires, stores the new pair in one write, and sends the merchant back through the app if a refresh fails.Get the pairInstall or token exchangeUse for 1 hourAdmin API callsRefresh early90-day refresh tokenStore bothOne write per storeIf it failsMerchant reopens the app

Three ways to migrate existing installs

  • Gradually, as merchants returnAsk for expiring tokens on new installs and re-authorizations: the expiring=1 parameter in your OAuth flow, or the expiringOfflineAccessTokens future flag in Shopify's Remix or React Router app package, then deploy. Merchants who never reopen the app stay on old tokens.
  • All at once, with token exchangeExchange each stored token for an expiring pair at the store's /admin/oauth/access_token endpoint, using the token exchange grant and expiring=1. The old token stops working when the exchange succeeds, so save the new pair first. The same request can be retried for 7 days.
  • Application-only access for workersBackground jobs that don't act for a merchant can sign a client assertion with a key registered in the Dev Dashboard and get a token for any store that installed the app. It lasts up to 1 hour and has no refresh token to manage.

For most apps we combine the first two: new installs start on expiring tokens straight away, and a controlled job exchanges the existing tokens store by store, so nobody waits for merchants to come back.

What changes in your code

  • Store the four values together: the access token, the refresh token and both expiry times, per store, updated in one write. A half-saved pair is the most common way to lose a store.
  • Refresh before the hour is up, not after a request fails. If a refresh fails, the app needs a new token, which usually means the merchant opens the app again.
  • Give each store's token one owner. Two workers refreshing the same store at once retire each other's results, and Shopify says not to refresh and acquire a new token for the same store at the same time. Workers that run independently fit application-only access better.
  • Don't mistake a frozen store for a token problem. Frozen stores answer with a 402, and refreshing won't change that.

To find what still uses old tokens, filter the Dev Dashboard logs by the token type Offline, non-expiring. Once every store has moved, turn on the setting that accepts expiring tokens only, so a forgotten code path fails in testing rather than on April 1, 2027. The rules don't apply to the Payments Apps API.

Network access: declare where storefront code loads from

The third rule covers code your app puts in front of shoppers. A network_access section in shopify.app.toml lists allowed_sources, the hosts your storefront code may load from, and allowed_navigation_hosts, the hosts it may send shoppers to. Wildcards are allowed, and an empty list means none.

From December 1, 2026, a public app must declare allowed_sources if it uses any of these:

When a Shopify app must declare allowed sourcesFrom December 1, 2026, public apps and custom apps installed outside their organization must declare allowed_sources if they use a theme app extension block or embed, script tags, an app proxy, the write_themes scope, or a web pixel with write_open_pixels.Theme app extension block or appembedScript tagsAn app proxyThe write_themes access scopeA web pixel with write_open_pixels
When a Shopify app must declare allowed sourcesFrom December 1, 2026, public apps and custom apps installed outside their organization must declare allowed_sources if they use a theme app extension block or embed, script tags, an app proxy, the write_themes scope, or a web pixel with write_open_pixels.Theme app extension block or appembedScript tagsAn app proxyThe write_themes access scopeA web pixel withwrite_open_pixels

Test on a development store with the Network access testing preview turned on, running shopify app dev. The storefront then sends a report-only Content Security Policy header, so a missing host shows up as a report in the browser instead of a broken page. When you deploy, the CLI checks the entries.

Run Shopify's app security check on every release

Shopify's CLI now includes shopify app security check. It runs 37 checks, 25 rated high, 10 medium and 2 low, combining fixed rules with an agent review of your code, and saves its results in the project's .shopify/app-security folder. Shopify recommends running it on every release and publishes a guide to adding it to a CI/CD pipeline.

We treat its high findings like failing tests: the release waits until each one is fixed or written down with the reason it doesn't apply. The check also catches the drift that the deadlines don't: a new scope nobody needed, a webhook that skips its signature check, a secret that found its way into front-end code.

What merchants will see

Merchants meet these rules through your listing and their admin. From November 20, 2026, an app without an allowlist disappears from the App Store and is flagged in Settings > Apps. From January 15, 2027, merchants see a warning about apps that missed either rule. From April 1, 2027, the app's Admin API calls fail, so syncs stop, data stops flowing, and the merchant's support ticket usually arrives before your monitoring does.

Tell your merchants before the warnings do. A short note that the app is moving to Shopify's new security rules, and whether they need to do anything (usually nothing, or opening the app once), keeps support quiet and reviews calm.

A six-week plan

A six-week plan for Shopify's app security rulesWeek one inventory, week two allowlist in test, week three enforce the allowlist, week four expiring tokens, week five network access declarations, week six the app security check in the release pipeline.01Week 1Inventory02Week 2Allowlist intest03Week 3Enforceallowlist04Week 4Expiringtokens05Week 5Network access06Week 6Check in CI
A six-week plan for Shopify's app security rulesWeek one inventory, week two allowlist in test, week three enforce the allowlist, week four expiring tokens, week five network access declarations, week six the app security check in the release pipeline.01Week 1Inventory02Week 2Allowlist in test03Week 3Enforce allowlist04Week 4Expiring tokens05Week 5Network access06Week 6Check in CI
If your app was delisted on November 20, start with weeks 1 to 3.
  1. Week 1, inventory. Every server, worker, scheduled job and outside service that holds your tokens, with the addresses each one uses. Every place a token is created, stored, refreshed or read.
  2. Week 2, allowlist in test. Enter the addresses, run the 30-day test and fix the hosting where addresses change, for example by routing workers through a NAT gateway with a static address.
  3. Week 3, enforce the allowlist. Turn on enforcement, verify a 403 from outside, and watch errors for a few days.
  4. Week 4, expiring tokens. Turn on expiring tokens for new installs, then exchange existing tokens in batches, checking each batch before the next.
  5. Week 5, network access. Declare allowed sources and navigation hosts, test with the preview on a development store, and deploy.
  6. Week 6, security check in CI. Add shopify app security check to the release pipeline and clear the high findings.

Six weeks suits a typical app with one backend and a handful of workers. An app with several services, older code or many installs needs longer, which is one more reason to start now rather than in March.

How we can help

We run our own apps, including GTM Assistant on the Shopify App Store and Dofeeds, and we are working through this same list on them. That work is now a package for other app owners: the Shopify App Security Check & Upgrade. We scan your app against Shopify's new rules and its security check, then do the upgrade: the allowlist and the hosting changes behind it, the move to expiring tokens, the network access declarations and the security check in your release pipeline.

Is your app ready for April 1, 2027?The Shopify App Security Check & Upgrade covers the scan and the upgrade work in one package. Get in touch for a quote.

Ask about your app

Frequently asked questions

My public app missed the November 20 deadline. What happens to my existing merchants?

Their installs keep working for now. The app is delisted and can't get new installs, merchants see it flagged in Settings > Apps, a warning appears in their admin from January 15, 2027, and the app's Admin API requests fail from April 1, 2027. Turning on an enforced allowlist is the first step.

Can I use an ASN instead of IP addresses?

Yes, up to 10 ASNs, optionally narrowed to up to 10 countries. It suits hosting whose addresses change, but the provider's network is shared with its other customers, so fixed addresses are the stronger choice where your hosting offers them.

Does the allowlist affect my embedded app pages or admin extensions?

No. Direct API access from embedded app pages, admin UI extensions and POS UI extensions is never rejected, and neither are dev preview requests on development stores. The allowlist applies to Admin API requests your servers make with the app's tokens.

Do I have to re-authorize every merchant to get expiring tokens?

No. Token exchange swaps each stored offline token for an expiring pair without the merchant doing anything. New installs and re-authorizations can request expiring tokens directly.

What happens if a token refresh fails?

The app has to get a new token, which usually means the merchant opens the app again. Refreshing early, storing each new pair in one write and giving each store's token one owner make failures rare.

Do these rules apply to custom apps?

Custom apps follow a different timeline. Apps installed outside your organization need an allowlist now for new installs and for every install from January 1, 2027. See Shopify's new security rules for custom apps.

Sources

WebG AgentAI agent · online 24/7

Your privacy choices

Your cookie and privacy choices, under India's DPDP Act, the EU and UK GDPR, and California privacy law (CCPA/CPRA). Google tags load with storage and ad features switched off and send only cookieless pings until you choose. Nothing else beyond the necessary runs until you turn it on, and you can change or withdraw a choice here at any time, as easily as you gave it.

Read the privacy policy