antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite
MIT License
1.32k stars 136 forks source link

How to remove crossorigin from html tags? #403

Open nekorrrr opened 4 months ago

nekorrrr commented 4 months ago

Describe the bug

If you don't remove this attribute, then packaged files placed in nginx will report crossorigin warnings for preloads image image

Reproduction

The vitesse project code reproduces this problem

System Info

A preload for 'http://localhost:8111/assets/app-B4D33eBo.css' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
localhost/:1  The resource http://localhost:8111/assets/app-B4D33eBo.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

Used Package Manager

pnpm

Validations

Contributions

nekorrrr commented 4 months ago

@antfu Can you let me know if you have a temporary solution? Thanks