I’m new to Shopify app development and building an app with Python/Django.
Problem: When I redirect users to the OAuth authorization URL:
https://dotshirt-2.myshopify.com/admin/oauth/authorize?client_id=…&scope=read_products&redirect_uri=https%3A%2F%2Fthanh-meliorative-jerrie.ngrok-free.dev%2Fcallback%2F
I get the error: “accounts.shopify.com refused to connect”
What I’ve verified:
-
My redirect URI is correctly configured in the app settings
-
The URL works perfectly when I paste it directly into the browser address bar
-
The issue only occurs when redirecting from my login route
Any ideas what might be causing this?