Should custom API calls pass through the App Proxy?

Highlighted
Shopify Partner
15 0 1

Hi! My Shopify App uses the App Proxy feature, and the application served on these app proxies routes makes AJAX API calls to my app. Do you recommend that my API calls go through the App Proxy as well or that I point my frontend app directly to my server's domain?

 

I've tried making a list of pros and cons:

Pros (for going through the App Proxy):

- API calls look like they stay on the shop's own domain, they will never be blocked by any ad blocker or such

- increased security? (I don't really think it adds anything in that case)

 

Cons:

- slower, adds latency

- no cookies passed to my server

 

Thanks!

Adrien

0 Likes