You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of Hugo you are using (output of hugo version): v0.121.2
Problem
When I generated my site with the Hugo and Docsy theme in an environment other than "production", I got a CORS problem on the click-to-copy.js script when I opened the "public/index.html" file locally.
In the "partials/layout/script.html" file, for the scripts contained in "assets/js", the crossorigin attribute is absent or conditioned by the "Production" environment. Only the "click-to-copy.js" script contains the crossorigin attribute without condition.
Is this an issue or a desired behavior for which I don't have an explanation?
Step to reproduce :
run hugo -e developpement
Open locally "public/index.html"
Show in browser console, the CORS error
The text was updated successfully, but these errors were encountered:
Environment
hugo version
): v0.121.2Problem
When I generated my site with the Hugo and Docsy theme in an environment other than "production", I got a CORS problem on the click-to-copy.js script when I opened the "public/index.html" file locally.
In the "partials/layout/script.html" file, for the scripts contained in "assets/js", the crossorigin attribute is absent or conditioned by the "Production" environment. Only the "click-to-copy.js" script contains the crossorigin attribute without condition.
Is this an issue or a desired behavior for which I don't have an explanation?
Step to reproduce :
hugo -e developpement
The text was updated successfully, but these errors were encountered: