Environment
SDK Version: @shopify/shop-minis-react@0.4.2
CLI Version: @shopify/shop-minis-cli@0.0.212
Device: iOS simulator and Android device (Motorola Moto G22)
Development OS: macOS 26.1
Mini Handle: help-me-choose
Issue
What’s broken: Remotes images don’t load if the associated trusted_domain includes a path.
Expected behavior: Remote images should load with a trusted_domain value that is either a domain or a domain with a path.
Actual behavior: Remote images where the trusted_domain includes a path don’t have permission to load.
Reproduction steps
-
Add a trusted_domain value with a path as specified in the docs . Example with the forum logo global.discourse-cdn.com/shopifycommunity/original/2X/c
-
Add an image component with a URL that matches the trusted_domain. Example with the forum logo https://global.discourse-cdn.com/shopifycommunity/original/2X/c/cd85c2064e171fd2181ff2fc9eedf8c3fad5777f.png
-
The image won’t appear in the emulator or device and an ESlint error will show up in the code editor “ src attribute loads from “global.discourse-cdn.com” which is not in trusted_domains. Add “global.discourse-cdn.com” to the “trusted_domains” array in src/manifest.json.“
Code example (if needed)
<Image
src="https://global.discourse-cdn.com/shopifycommunity/original/2X/c/cd85c2064e171fd2181ff2fc9eedf8c3fad5777f.png"
alt="Logo"
aspectRatio={1}
/>
Manifest config (for manifest related issues)
"trusted_domains": [
"global.discourse-cdn.com/shopifycommunity/original/2X/c"
]
Already Tried
-
First and foremost: have I read the docs? - Yes
-
Confirmed scopes match what I’m accessing - Yes
-
I’ve run
npx shop-minis upgradeto make sure I’m on the latest versions - Yes -
As a workaround, if a trailing slash is added to the trusted_domain value, the image loads correctly. Example global.discourse-cdn.com/shopifycommunity/original/2X/c/, though the eslint error still shows. Is this the intended way of specifying trusted_domain paths (as opposed to the example in the docs)?