On this page
Why this happens
A storefront proxy exposes an application endpoint through the shop domain. Query parameters such as logged_in_customer_id are not trustworthy when received directly at an unverified backend endpoint.
Implementation
Use your framework’s app proxy authentication helper where available. Otherwise implement Shopify’s documented parameter canonicalization and HMAC verification with constant-time comparison. After verification, check the shop against your installation records and authorize the requested resource for the verified customer. Treat an empty customer ID as anonymous.
Example
const { session } = await authenticate.public.appProxy(request);
// Check installation and resource authorization before returning data.
This example assumes the Shopify React Router app framework and its configured authenticate helper. A valid proxy request is not automatically permission to read arbitrary customer records.
- Send a valid storefront request
- alter the customer ID
- call the backend directly without a signature
- test a logged-out shopper
- attempt to access another customer’s resource
- verify unauthorized requests expose no private data.

