Accessing ipify.org using axios

Description of the issue:

When executing an async-await function calling the ipify.org service (which is perfectly working in the same computer in FireFox and Chrome lastest versions), it returns nothing in Brave.

But, if you access directly to the url (https://api.ipify.org), it works fine (as expected).

Steps to Reproduce (add as many as necessary): 1. 2. 3.
Try this:

async giveIP() {
const url = ‘https://api.ipify.org’;
try {
const { data } = await axios.get(url);
console.log(“IP:” + data);
} catch (err) {
console.log("Error IP: " + err);
}
}

Actual Result (gifs and screenshots are welcome!):

Expected result:

your own IP

Reproduces how often:

Anytime

Operating System and Brave Version(See the About Brave page in the main menu):
Windows 10 Pro - Version 0.68.140 Chromium: 77.0.3865.90 (Build oficial) (64 bits)

Additional Information:

Thank you in advance.

Note, ipify.org is blocked as a third-party domain (as part of Easyprivacy). But I tested the site, it gave me an IP address (same ip in the chrome I tested)

That’s why I don’t understand the problem accessing it from Axios: in FireFox and Chrome works, not in Brave (in despite the url direct access works fine, as you said).

Is there a better example of this test, where the result can be shown differently among different browsers?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.