async-postgres icon indicating copy to clipboard operation
async-postgres copied to clipboard

Magento order api: Missing custom header

Open thekingbk90 opened this issue 3 years ago • 0 comments

lib/cart.js: Missing custom header; Therefore, I cannot get X-Forwarded-For (real IP) when creating an order module.create = function (customerToken, customerId = null) { if (customerId) { return restClient.post('/customers/' + customerId + '/carts', {}, customerToken); } else { if (customerToken) { return restClient.post('/carts/mine', {}, customerToken); } else { return restClient.post('/guest-carts'); } } } Screenshot_3

thekingbk90 avatar Jul 11 '22 03:07 thekingbk90