How to Load js and css in proxy page?

Hi team,

Can anyone let me know on how we can load client js and css on the proxy page? I switched from blocks to proxy and now unable to load js and css while using proxy.

Thanks

Hi Khasim,

I found this older forum post that looks to address this: Does anyone have an example of serving a JS file using App Proxy? - Shopify Community

You’d serve the JS file by setting the response content-type to text/javascript . Or serve text/html and a script tag with the JS from some CDN or your own server.

Would this work for you?

1 Like