New Shopify Certification now available: Liquid Storefronts for Theme Developers

How to add custom HTTP headers in Mobile Buy SDK

cenisuru
Shopify Partner
11 0 0

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` 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?

Replies 2 (2)
ShopifyDevSup
Shopify Staff
Shopify Staff
1203 190 420

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.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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

cenisuru
Shopify Partner
11 0 0

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