Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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

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

younusraza909
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)