I'm recreating my development app in production by creating a new app but using almost the same code. My development app works fine and installation has no problems; however on my production app I keep getting the Oauth error invalid_request: The redirect_uri is not whitelisted. I have the exact url whitelisted in my app settings and matches the one in the url of there auth failure, so I'm not sure why this error is occurring.
and the url of the error is https://MYSTORE.myshopify.com/admin/oauth/authorize?client_id=CLIENT&scope=SCOPES&redirect_uri=https...
Since the uri matches what I have whitelisted, I don't understand why I'm getting a whitelisted error.
Are there any requirements for the domains or am I missing something?
Any advice would help. Thanks
Solved! Go to the solution
This is an accepted solution.
Have you tried whitelisting just the TLD name? For example, just https://MYDOMAIN.com/ ? See this for some details --> https://shopify.dev/tutorials/authenticate-with-oauth#scopes.