Cordova Slack Digest

Sat, 06 Feb 2021 08:33:26 GMT

User count: 4357

Join the conversation at slack.cordova.io

Channel #general (1 messages)


Fri, 05 Feb 2021 14:05:36 GMT

@vesselin.ivanovv says

Hello! I‘m stuck on one issue and my deadline is almost over. So, I’m trying to make a http request to local network and I received the following error:

XMLHttpRequest cannot load <http://192.168.4.1/list> due to access control checks.
Failed to load resource: Preflight response is not successful```
My request:
```   axios
    .get('<http://192.168.4.1/list>')
    .then(res =&gt; {
     console.log(res)
    }).catch((err) =&gt; {
     if (err.status === 500) {
      // error
     } else {
      // error
     }
    })```
I tried to set some headers to this request like Access-Control-Allow-Origin, Access-Control-Allow-Headers, Access-Control-Allow-Methods. Unfortunately it didn’t work.

This issue is only in iOS app. In android app or browsers the request works properly.

Can anyone help me? Thanks!

Channel #cordova-ios (2 messages)


Fri, 05 Feb 2021 10:24:44 GMT

@werner.haingartner says

when I try to archieve my product, I got following error: Cordova/CDV.h not found

it is an target extension, written in swift

Sat, 06 Feb 2021 03:20:21 GMT

@bvtmsr says

I don't have knowledge of Cordova-ios. Getting white blank screen followed by the link https://github.com/apache/cordova-plugin-wkwebview-engine

cordova-ios:5.1.1 Angular-Cli:8.x