asciidoctor / asciidoctor-browser-extension

:white_circle: An extension for web browsers that converts AsciiDoc files to HTML using Asciidoctor.js.
https://chrome.google.com/webstore/detail/asciidoctorjs-live-previe/iaalpfgpbocpdfblpnhhgllgbdbchmia
MIT License
218 stars 50 forks source link

File in shared folder isn't rendered with Chrome and Edge #658

Open yasuhirokimura opened 1 year ago

yasuhirokimura commented 1 year ago

I installed Asciidoctor.js Live Preview extension 2.7.1 to following Browsers.

All of them works on 64bit Windows 10 22H2. I also checked Allow access to file URLs with Chrome and Edge.

With Firefox .adoc file is successfully rendered wherever it is. With Chrome and Edge both local file and file on web server are successfully rendered too. But if I open file in shared folder (file://remotehost/foldername/foo.adoc), then it isn't rendered and source text is displayed as is.

ggrossetie commented 1 year ago

Probably the same issue: https://github.com/asciidoctor/asciidoctor-browser-extension/issues/94#issuecomment-77744314

Browsers do not allow loading file from shared folder using XMLHttpRequest. As mentioned in #94, the only workaround is to copy files elsewhere or setup a webserver.