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
1829 269 405

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 Advocate @ Shopify