Cordova Slack Digest

Sun, 05 Sep 2021 08:20:54 GMT

User count: 4609

Join the conversation at slack.cordova.io

Channel #general (1 messages)


Sat, 04 Sep 2021 12:30:11 GMT

@patrykluba97 says

Hello

I have react app with cordova. Cordova 10.1.0 and when I use axios to send request I have error (image).

My config.xml

&lt;widget id="com.sip" version="2.0.7" xmlns="<http://www.w3.org/ns/widgets>" xmlns:cdv="<http://cordova.apache.org/ns/1.0>"&gt;
    &lt;name&gt;asd&lt;/name&gt;
    &lt;description&gt;
        asd
    &lt;/description&gt;
    &lt;author email="<mailto:asd@asd.pl|asd@asd.pl>" href="<https://asd.pl>"&gt;
        Company
    &lt;/author&gt;
    &lt;content src="index.html" /&gt;
    &lt;access origin="*" /&gt;
    &lt;allow-intent href="*" /&gt;
    &lt;allow-navigation href="*" /&gt;
    &lt;platform name="android"&gt;
        &lt;edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="<http://schemas.android.com/apk/res/android>"&gt;
            &lt;application android:usesCleartextTraffic="true" /&gt;
        &lt;/edit-config&gt;
        &lt;allow-intent href="market:*" /&gt;
    &lt;/platform&gt;
    &lt;platform name="ios"&gt;
        &lt;allow-intent href="itms:*" /&gt;
        &lt;allow-intent href="itms-apps:*" /&gt;
    &lt;/platform&gt;
&lt;/widget&gt;```
What am I do wrong?