For data only your server has, use an app proxy: a path on the shop's domain (a fixed prefix like /apps plus your subpath) that Shopify forwards to your server. It appends the shop, a logged_in_customer_id and a signature.
Return HTML or JSON and it passes through. Return Liquid with Content-Type: application/liquid and Shopify renders it inside the shop's theme.
AI tell: a proxy handler that reads logged_in_customer_id and never checks the signature.