Skip to content

Commit feb5df0

Browse files
authored
Merge pull request #1359 from Shopify/use-remote-ip
Use `request.remote_ip` instead of `request.ip` to obtain buyer IP
2 parents 04793ad + 5079917 commit feb5df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage/graphql_storefront.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ QUERY
3939

4040
# You may not need the "Shopify-Storefront-Buyer-IP" header, see its documentation:
4141
# https://shopify.dev/docs/api/usage/authentication#making-server-side-requests
42-
response = client.query(query: query, headers: { "Shopify-Storefront-Buyer-IP": request.ip })
42+
response = client.query(query: query, headers: { "Shopify-Storefront-Buyer-IP": request.remote_ip })
4343
# do something with the returned data
4444
```
4545

0 commit comments

Comments
 (0)