Cordova Android CORS crypt-file plugin -


i developing android application cordova , trying use following plugin, encrypt source files. https://github.com/tkyaji/cordova-plugin-crypt-file

while ios working fine, on android following error. no 'access-control-allow-origin' header present on requested resource. origin 'http://localhost' therefore not allowed access.

without plugin, working fine. have csp set , using whitelist plugin have added localhost in config.xml. have searched quite while now, seem solving problem whitelisting, not working me.

i using cordova 5.4.1

any help/idea appreciated. best regards

runned same problem, solved allowing localhost request on server specific action.

header("access-control-allow-origin: http://localhost"); 

see github issue: https://github.com/tkyaji/cordova-plugin-crypt-file/issues/4


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -