webodf / ViewerJS

ViewerJS: Document Reader in JavaScript
http://viewerjs.org
1.94k stars 421 forks source link

Error opening document #223

Open GlauberF opened 7 years ago

GlauberF commented 7 years ago

Error opening document. I use the webodf, I tried to open documents in the format (txt, doc, docx, odt) and it does not work, the same error appears in the console.

erro

trueliarx commented 7 years ago

You are linking to local resources (file://). It's not related to viewerjs and it's to avoid security issues. In a few words: You need to use urls with http/https, etc.