home_url returns ip address instead of site url
-
I am using WC webhooks for update order and new order events. The API processor looks at the x-wc-webhook-source to identify from which site does the webhook come from.
The problem is that in some random cases, the x-wc-webhook-source is filled with the ip address of the site, instead of the domain name. This causes problem at the API processor as it cannot identify the source properly with the ip address.The header is set here: https://github.com/woocommerce/woocommerce/blob/3611d4643791bad87a0d3e6e73e031bb80447417/plugins/woocommerce/includes/class-wc-webhook.php#L339
I see that it calls the get_option function, so it’s probably a wp issue and not a wc issue, but I’m not sure.
Any idea why can it be and how can this be fixed?
The page I need help with: [log in to see the link]
- The topic ‘home_url returns ip address instead of site url’ is closed to new replies.