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.
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
| Date | What happens | Rule |
|---|---|---|
| April 1, 2026 | New public apps must use expiring offline access tokens | Expiring tokens |
| November 12, 2026 | Bulk queries and mutations are blocked for apps without an IP allowlist | IP allowlist |
| November 20, 2026 | Apps without an IP allowlist are delisted, blocked from new installs and flagged in Settings > Apps | IP allowlist |
| December 1, 2026 | Apps that put code on the storefront must declare allowed sources | Network access |
| January 1, 2027 | Apps still on non-expiring offline tokens are delisted and blocked from new installs | Expiring tokens |
| January 15, 2027 | Merchants see a warning in their admin about apps that missed either rule | Both |
| April 1, 2027 | Admin 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
- List every outbound address. Web servers, background workers, queue consumers, scheduled jobs and any outside service that calls the Admin API with your tokens.
- Enter them in the Dev Dashboard: open the app, go to Settings and choose Manage next to IP allowlist.
- 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.
- Turn on Enforce IP allowlist and save. Turning it off later keeps your list.
- 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.
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:
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
- 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.
- 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.
- Week 3, enforce the allowlist. Turn on enforcement, verify a 403 from outside, and watch errors for a few days.
- Week 4, expiring tokens. Turn on expiring tokens for new installs, then exchange existing tokens in batches, checking each batch before the next.
- Week 5, network access. Declare allowed sources and navigation hosts, test with the preview on a development store, and deploy.
- 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 appFrequently 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
- Shopify, IP allowlist, Dev Dashboard documentation, checked November 22, 2026
- Shopify, App security updates: IP allowlist is now required, developer changelog, November 5, 2026
- Shopify, App security updates, October 2026, developer changelog
- Shopify, Offline access tokens, authentication documentation, checked November 22, 2026
- Shopify, Migrate to expiring offline access tokens, checked November 22, 2026
- Shopify, Expiring offline access tokens required for all public apps as of January 1, 2027, developer changelog
- Shopify, Declare network access, storefront security documentation, checked November 22, 2026
- Shopify, Test app network access configuration on dev stores, developer changelog
- Shopify, app security check, Shopify CLI reference, and Check your app on every release