Getting 'X-Frame-Options' to 'sameorigin'. when running 'npm run dev'

Getting 'X-Frame-Options' to 'sameorigin'. when running 'npm run dev'

Shopify Partner
1 0 0

I created a Shopify app using the CLI 6 months ago. When I opened the app recently, I upgraded all dependencies to the latest versions and then ran npm run dev.

I clicked "p" to preview it in the web browser. The app loaded, but then it showed a white screen and gave the following error:

Refused to display {{URL FROM MY TOML FILE}} in a frame because it set 'X-Frame-Options' to 'sameorigin'.

I have used the shopify config and pull commands. I have tried logging out through the CLI and then logging back in, but I'm still stuck with the issue.

When I create a new app using the CLI, it works fine, so I don't think it's a network issue.

Replies 0 (0)