App Proxy subpath and prefix responding with a 403 error

caityh
Shopify Partner
1 0 0

Hey there,
I'm building my first app proxy with Shopify and I just need a little help. When I query my proxy URL l directly in the browser I get the behavior I want which is just a proof of life string. When I query my {shop.myshopify.com}/{Sub path prefix}/{Sub path} it responds with a 403 code. The proxy URL routes to an application that uses  Oauth and it is installed into my shop.

Reply 1 (1)
SBD_
Shopify Staff
Shopify Staff
1098 146 219

Hey @caityh,

 

The proxy URL is set to https://<redacted>.herokuapp.com/shopify?shop=<redacted>, which is attempting an app install.

 

I suspect it's working directly in your browser because you've already authenticated in your browser - see if you can access the proxy URL in an incognito/private tab, you should hit the same error.

 

Given the request is proxied through Shopify, the URL will need to be publicly accessible. More info: https://help.shopify.com/en/api/guides/application-proxies#handling-proxy-requests

 

 

 

Scott | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog