quarto.js
blocked by Cross origin requests policy when not previewing using web server
#11904
Labels
documentation
Doc improvements & quarto-web
html
Issues with HTML and related web technology (html/css/scss)
Milestone
With the new way
quarto.js
works, and how in importtabset.js
, Quarto will show console error about loading scripts when opening the HTML file, without having resource embeded.This happens with Quarto 1.6.40 too.
I am opening this issue in case anyone else is searching for this, as this is new starting from Quarto 1.6. Previously, opening from file system would work, but now, Quarto documents needs to be served (using
quarto preview
for example) so that they fully works. This was previously required only when using some JS tool that required server (like OJS)I don't known if we can improve this somehow, but at least this should be documented somewhere... maybe in the FAQ. 🤔
This can be surprising to some users.
(I found this while looking at rich-iannone/DiagrammeR#519 (comment) where
quarto preview
does not work with some JS lib and opening from file system help)The text was updated successfully, but these errors were encountered: