Skip to content

Commit

Permalink
Merge pull request #1359 from Shopify/use-remote-ip
Browse files Browse the repository at this point in the history
Use `request.remote_ip` instead of `request.ip` to obtain buyer IP
  • Loading branch information
aminzam authored Jan 7, 2025
2 parents 04793ad + 5079917 commit feb5df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage/graphql_storefront.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ QUERY

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

Expand Down

0 comments on commit feb5df0

Please sign in to comment.