How to add custom HTTP headers in Mobile Buy SDK

Hi,

I’m developing an app using the Shopify Buy 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](https://shopify.dev/docs/api/usage/authentication#optional-ip-header) 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?

Hey @cenisuru , that’s interesting. In this case, the best thing to do will be to open an issue in the github repository that you linked.

Hope that helps.

  • Kyle G.

Hi Kyle, thanks for the response. I went ahead and opened a ticket over there.