Allowed Sources Finder

Can allowed_sources declare a WebSocket (wss://) origin?

Not yet. On 1 Dec 2026 a Shopify staff reply said wss:// support is coming shortly, with no date. Until then, the reference asks for HTTPS origins, and developers report that wss:// entries are refused and that an https:// entry does not cover the WebSocket.

Shopify's words

"Use a lowercase HTTPS origin with no path or trailing slash, such as https://api.app.example.com."

Source: App configuration reference, read 1 Dec 2026. It names no WebSocket scheme.

"wss:// support is coming shortly. We'll post a changelog update once it's available."

Source: Shopify Staff reply of 1 Dec 2026 in How can allowed_sources permit WebSocket connections?, read 1 Dec 2026. The same question sits at community.shopify.com.

"Releasing your allowed_sources configuration doesn't currently cause undeclared resource requests to be blocked on production storefronts. That CSP is currently report-only."

Source: Shopify Staff reply of 12 Nov 2026 in the developer forum, read 1 Dec 2026. That is a statement about 12 Nov, not a promise about later.

How to test it

  1. Use a dev store with the Network access testing preview and run shopify app dev.
  2. Open the feature that uses the WebSocket on the store's myshopify.com address, with the browser console open.
  3. Read the warning. Check whether the page's Content-Security-Policy-Report-Only header lists your host.
  4. If your code also sends HTTPS requests to that server, its https:// origin belongs in the list as usual. Watch Shopify's changelog for the wss:// update that the staff reply promised.

The Allowed Sources Finder lists ws:// and wss:// addresses under "Check by hand" for this reason.

Build your list: Allowed Sources Finder