Hi,
I am facing a peculiar issue, I have placed few javascripts in my theme, and when I try to include them on my page through a script, they give me 403 (fobidden) status code on my preview (if I am not logged in.)
The same applies for my font files too.
For now I have packaged the script files and fonts in my project code, and accessing that using the context root.
But I really want to keep my script files and font files seperate to avoid doing a build for a tiny scripts change.
The script I use to include .js files along with .css from my theme (css load fine, only .js files cause an issue)
<%
for (String themePath: themeFilePaths) {
if (themePath.endsWith("print.css")) {
out.write("<link href=\"");
out.write(themePath + "\" rel=\"stylesheet\" type=\"text/css\" media=\"print\" />\n");
} else if (themePath.endsWith(".css")) {
out.write("<link href=\"");
out.write(themePath + "\" rel=\"stylesheet\" type=\"text/css\" />\n");
}
else if (themePath.endsWith(".js")) {
out.write("<script src=\"");
out.write(themePath + "\" type=\"text/javascript\"></script>\n");
}
}
%>
For previous version of vignette (8.0), this worked fine, and this is the issue i faced with the new system.