Admin.shopify.com refused to connect

We have an app on a Shopify store, and for some clients, our app displays the error message “admin.shopify.com refused to connect” when attempting to open it on their Shopify store.

This issue happens for some clients, but it isn’t very clear, especially when it returns to normal work when trying it again or just reinstalling the app.

I’ve started getting this during development as well. Happens very randomly and doesn’t go away by refreshing the page but clicking the app in the side navigation gets things up and running again. Odd :thinking:

Yes, and this makes my customers confused and start to be concerned that the app is not working. @ShopifyDevs, any solution for this?

Hey folks - are you using managed installs?

What could be happening is that when migrating to managed installs, some old parts of the OAuth flow could have remained, specifically the redirect logic for initial app load. Your app URL endpoint should NOT redirect. It should:

  • Respond with HTTP 200
  • Render the app HTML that includes App Bridge