mahen23
mahen23

Reputation: 737

ERROR Capacitor Mixed Content: insecure XMLHttpRequest endpoint

You will get this error if you try to do insecure GET requests to a server running on http, instead of https.

Upvotes: 0

Views: 49

Answers (1)

mahen23
mahen23

Reputation: 737

The solution is to update capacitor.config.ts or capacitor.config.json and add this line:

 "server": {
    "androidScheme": "http",
  },

Upvotes: 0

Related Questions