I'm building a little Shopify app. I wanna add an application proxy. It all works fine - local path causes the redirect to my page.
However if I set the Content-Type: application/liquid
header the page should be loaded as a local Shopify page.
But when I do that the browser simply downloads the output rather than displaying it in the context of Shopify theme.
Any ideas what am I doing wrong or what might be causing this?
From Shopify docs:
If the HTTP response from the Proxy URL has Content-Type: application/liquid set in its headers, Shopify will evaluate and render any Liquid code in the request's body in the context of the shop using the shop's theme. When used the right way, it can automatically make your app look like it belongs as part of the shop without any manual intervention.
UPDATE
It seems to be working fine on one server, but keeps downloading on another. Trying to compare the headers with no luck so far.