Whitelisted URI Error

Solved
CraigP
Excursionist
15 0 6

Hi, 

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.

In app settings, I have the app url as https://MYDOMAIN.com/auth and whitelisted https://MYDOMAIN.com/auth/installed

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

0 Likes
Greg_Kujawa
Shopify Partner
965 80 204

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

0 Likes
CraigP
Excursionist
15 0 6

I believe thats how I fixed it, thanks! Its weird, I didn't need to just have the domain whitelisted for my development app. Oh well, works now which is all that matters.

Thank you 

0 Likes