Skip to Content
Appwright
Technical Overview

Shopify App Proxy

How storefront requests reach your workers, and how they're verified

Bound uses Shopify’s app proxy mechanism to make your workers reachable from your store’s own domain.

The URL pattern

https://<your-shop>/apps/bound/<worker-handle>[/anything/else]

Shopify forwards any request under /apps/bound/ to Bound’s proxy endpoint, which relays it to your shop’s dispatcher — and from there to the worker named by the first path segment. Extra path segments, the query string, headers, and body all reach your worker. Any HTTP method works.

How requests are verified

Every app proxy request is cryptographically signed by Shopify, and Bound verifies that signature before anything is forwarded:

  • Shopify signs the request’s query parameters with an HMAC computed from the app’s shared secret.
  • Bound re-computes and compares the signature on every request. An invalid or missing signature is rejected with a 400 and never touches your worker.
  • The signature’s timestamp must be within a 90-second window, which bounds replay.

In short: code in your worker only ever runs for requests that genuinely came through your storefront’s proxy.

What your worker sees

The request arrives at your fetch handler essentially as sent: same method, headers, body, and full query string (including Shopify’s own shop, signature, and timestamp parameters, which your code can inspect). The response your worker returns — status, headers, body — is passed back to the storefront untouched, including the 429 response when your shop’s run limit is spent.

Configuration

The proxy is configured app-wide (/apps/bound/ for every shop), not per store. It requires the write_app_proxy scope and routes to Bound’s hosted endpoint; there is nothing for you to set up or maintain.

Worth knowing

  • It’s public. A proxied worker URL is reachable by anyone who knows it, like any storefront URL. If an endpoint should be restricted (admin-only data, paid APIs), gate it in your worker code — for example by checking a shared token you pass as a header and store as a secret.
  • Signatures prove origin, not identity. The signature tells you the request came via your shop’s proxy; it says nothing about which shopper sent it. Treat request data as untrusted user input.
  • Your worker’s dispatcher URL is also public (<store>--bound-dispatcher.<subdomain>.workers.dev/<handle>) and unauthenticated by design — the proxy is the authentication boundary for storefront traffic. Sensitive endpoints should verify callers in code regardless of the URL they came in on.