Can allowed_sources use wildcards like *.example.com?
Yes, in allowed_sources. Start the host with *. to cover its subdomains; the wildcard does not cover the host itself, and allowed_navigation_hosts takes no wildcards at all.
Shopify's words
"To cover the subdomains of a host, start it with
*., such ashttps://*.cdn.app.example.com. The wildcard doesn't coverhttps://cdn.app.example.comitself."
"Don't use IP addresses,
localhost, Shopify domains, or a domain that many owners share, such ashttps://s3.amazonaws.comorhttps://*.amazonaws.com."
Source: App configuration reference, read 1 Dec 2026. For navigation hosts the same page says: "Use a lowercase host name with no scheme, port, path, or wildcard".
"Wildcards are allowed." ... "Wildcards are not supported on public suffixes (the config should get rejected for any invalid values)."
Source: Shopify Staff reply of 20 Nov 2026 in the developer forum, read 1 Dec 2026.
What to do
- Use a wildcard only for a host you own, such as your own CDN or API domain.
- If your code also calls the bare host, list it as its own entry next to the wildcard.
- Do not wildcard a domain many owners share. Use the host that belongs to you, such as
https://my-bucket.s3.amazonaws.com, the reference's own example. - List every navigation host by name, subdomains included.
- Developers report that an
https://wildcard does not coverwss://addresses. See the WebSocket answer.