angularjs - Crosswalk browser for Android throws “Only secure origins are allowed” error -


i thought common issue can't find straight-forward answer problem. included crosswalk webview engine android i'm getting following error message:

"only secure origins allowed"

.... presumably http requests made local , external servers (like http://localhost:3000 or https://my.own.server/) using angular $http service.

what solution issue? after many hours of googling i'm still clueless how solve issue. please point me in right direction?

kind regards,

edit: question not related permissions given in server has been pointed out, it's related content security policy. can read here, , quote:

controls network requests (images, xhrs, etc) allowed made (via webview directly).

you have understand webview in case crosswalk (which chromium underneath) , need configured can make requests both: local servers (http://localhost:3000, etc) , external ones (https://my.own.server). question more akin this one in opinion.

how configure crosswalk ionic/cordova app?

if own server easiest way handle add response header for:

access-control-allow-origin: * 

here discussion in stackoverflow itself.

origin not allowed access-control-allow-origin

good luck.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

python 3.5 - Pyqtgraph string in x tick -