Shopify / mobile-buy-sdk-ios

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452 stars 199 forks source link

How To Add Custom HTTP Headers #1218

Open Isuru-Nanayakkara opened 12 months ago

Isuru-Nanayakkara commented 12 months ago

Hi,

I first posted this question in the forum but I was directed here.

I'm developing an app using this SDK. When I'm testing the API functions like login, password recovery etc, I frequently run into the limit exceeded error. Upon searching for an answer, I came across someone saying that you should consider adding the Shopify-Storefront-Buyer-IP header to the requests. I looked through the API docs and SDK code itself. I couldn't find a way to set custom headers to the HTTP requests originating from the SDK.

Is there a way to do this that I'm missing?