Skip to main content

allowed_sources now supports bucket paths for shared storage hosts

You can now add bucket paths for path-style Amazon S3, Google Cloud Storage, and Cloud Storage for Firebase URLs to your app's allowed_sources list in shopify.app.toml.

What changed

Network access declarations previously didn't accept paths, and rejected shared storage hosts like https://s3.amazonaws.com and https://storage.googleapis.com. You can now list the path to your bucket on those hosts, ending with / right after the bucket name.

What to do

If your app already loads files from its own host (such as https://my-bucket.s3.amazonaws.com or a custom domain), you don't need to change anything. Keep using that host. If your storefront code loads files from a shared storage host, add your bucket path to allowed_sources and deploy a new app version.

For supported formats and rules, see the app configuration reference and Declare your app's network access.

Was this page helpful?