Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49223

Cross domain issue from a device

$
0
0

@guyjoules wrote:

So, I’m trying to use the google-translate-api-without-node module within my ionic app.
From ioinc serve I got the CORS issue, solved by a chrome extension Allow-Control-Allow-Origin: *. It works from Chrome when served.

From what I’ve read (here and here), this will not be a problem from a real device.
But when i deploy to an android device, I still cannot use it.
Chrome inspect gives me this error:

Error
    at Object.error (0.js:48141)
    at fire (0.js:27204)
    at Object.fireWith [as rejectWith] (0.js:27334)
    at done (0.js:33161)
    at XMLHttpRequest.<anonymous> (0.js:33401)
    at XMLHttpRequest.o (polyfills.js:2)
    at t.invokeTask (polyfills.js:3)
    at Object.onInvokeTask (vendor.js:4499)
    at t.invokeTask (polyfills.js:3)
    at r.runTask (polyfills.js:3)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>