voila icon indicating copy to clipboard operation
voila copied to clipboard

Voila doesn't render html file despite whitelisted. Getting 403 Internal Error

Open gioxc88 opened this issue 2 years ago • 5 comments

Any way to solve this? I tried many methods including --VoilaConfiguration.file_whitelist="['.*\.(png|jpg|gif|svg|pdf|mp4|avi|ogg|html)']"

None of them worked. I am trying to display an IFrame that reads an html file inside the notebook folder Thanks

gioxc88 avatar May 26 '22 19:05 gioxc88

Hi, can you provide a snippet to reproduce the issue?

trungleduc avatar May 27 '22 12:05 trungleduc

I am experiencing the same issue when running Voila on Binder. I have been trying to place the voilaConfiguration in the voila.json on the repo but seems Voila is not picking it up and return 403 error when reading HTML files.

Repo: https://github.com/aeriosk/test

Running the notebook on Binder: https://mybinder.org/v2/gh/aeriosk/test/master?filepath=test_pivot.ipynb

Running the notebook on Binder with Voila: https://mybinder.org/v2/gh/aeriosk/test/master?urlpath=voila/render/test_pivot.ipynb

I am using pivottablejs package which generate pivottablejs.html file to be displayed in the notebook. Thanks.

aeriosk avatar Jul 07 '22 02:07 aeriosk

similar experience

majidaldo avatar Sep 15 '22 19:09 majidaldo

try to effectively not blacklist anything: file_blacklist="sdfsdafsdfsdf"

majidaldo avatar Sep 15 '22 21:09 majidaldo

I am also running a notebook on Binder, and I'm having a similar issue. Do you know if this would be the correct syntax to include in voila.json?

"VoilaConfiguration": { "file_whitelist": [".*\.(zip|db)", "public.*"] }

Eric-Cortez avatar Oct 05 '22 23:10 Eric-Cortez