Hi, I’m in the process of building a Shopify app via the Remix template. The app seems to work in production, but after building and starting the app for production/(staging) as described here the app and authentication work poorly.
The embedded app root does load, but has a few problems, most importantly:
- Any sub page selected via the embedded side menu wants re-authentication. (After calling the ‘await authenticate.admin(request)’ method in the loader from the ‘shopify-app-remix’ included in the Remix template)
Filling the above form results in the following error and a browser console error about showing the frame. A session record was created in the database
The loading of “https://accounts.shopify.com/select?rid=63be12ac-d797-44a3-b9f8-18255dd1d824” in a frame is denied by “X-Frame-Options“ directive set to “deny“.
- Translations are not being loaded, even though the resources are available at their respective urls. (Tested by visiting the resource urls directly)
- < Button > element not firing its onClick anymore.
So I have the following question:
What could cause my Shopify Remix app to have authentication problems and more in the production environment but not in the development environment?
Thanks.