antfu-collective / vitesse

🏕 Opinionated Vite + Vue Starter Template
https://vitesse.netlify.app/
MIT License
8.83k stars 931 forks source link

How to solve the console preload crossorigin warning problem #536

Open nekorrrr opened 4 months ago

nekorrrr commented 4 months ago

Describe the bug

image

vitesse Demo: https://vitesse.netlify.app/

Reproduction

this project

System Info

vitesse.netlify.app/:1  A preload for 'https://vitesse.netlify.app/assets/app-Ccandkqr.css' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
vitesse.netlify.app/:1  The resource https://vitesse.netlify.app/assets/app-Ccandkqr.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.
vitesse.netlify.app/:1  A preload for 'https://vitesse.netlify.app/assets/app-Ccandkqr.css' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
vitesse.netlify.app/:1  The resource https://vitesse.netlify.app/assets/app-Ccandkqr.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 @YunYouJun @hannoeru