I am trying to use indexdb inside an iframe that works inside a cordova application on ios, but I get SecurityError (DOM Exception 18): IDBFactory.open () is called in an invalid security context , I found that this problem was fixed on iOS 10 beta 5, so I download iOS 10.1 beta and try to work on a real device, but I still can't get it to work. Here is a link to the error https://issues.apache.org/jira/browse/CB-11524 . I also use beta version of Xcode 8.1.
SecurityError (DOM Exception 18): IDBFactory.open() called in an invalid security context
open
_callee$ — database.js:11
tryCatch — runtime.js:61
invoke — runtime.js:329
step — database.js:3
initializePromise
Promise
(anonymous function) — database.js:3
tryCatch — runtime.js:61
invoke — runtime.js:329
step — index.js:3
promiseReactionJob
source
share