javascript - Use EJS in iOS 8 WKWebTextView (cross origin request) -
i've got app on ios uses ejs render fancy stuff in web views. i'm in process of setting utilize wkwebview on ios 8, i'm running issues. when create new ejs render:
var myjs = new ejs({url: 'file.ejs'}).render({...}); i error in console:
xmlhttprequest cannot load file:///users/me/library/developer/coresimulator/devices/hash/data/containers/bundle/application/34e247a4-34f3-4334-99d3-c236715427e6/myapp.app/file.ejs. cross origin requests supported http.
this worked uiwebview in ios 6 , 7. going on in 8? bug in wkwebview, or there special need path? i've tried prepending / , ~/ file.ejs no avail.
javascript ios ejs ios8 wkwebview
No comments:
Post a Comment