Make API to requests to the same host as the page request by default