Why isn't the header and footer loading on my proxy page in a public app?

I am working on a public APP. I created a proxy page. The problem arises when running the React page or PHP page. Shopify is not loading the header and footer on the proxy page, it just loads the proxy page content.

Hi @haroonstaytune ,

Make sure you’re setting content header “application/liquid”

For NodeJS using Express

res.set({
  "Content-Type": "application/liquid"
});

For PHP

header('Content-Type: application/liquid');

Best,

Sam

1 Like

In React or Next Js?
It is not working in react and next js but works in PHP …

@haroonstaytune ,

Check the response headers make sure they have content type set to ‘application/liquid’

Best,

Sam

Where we have to set this Header in Laravel

In my case its not working in Laravel

1 Like