I like to insert a pdf in a HTML article with the help of pdf.js.
It works perfectly in the aem preflight app, but not in our own developper test app.
In our app there is the following error:
XMLHttpRequest cannot load file:///var/mobile/Containers/Data/..../test.pdf. Cross origin requests are only supported for HTTP.
So is it possible to set <access origin="*" /> or somithing like this on our own app, so it can load local files?
Or what is the difference from our own app to the preflight app?
Thanks, David