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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
在使用defineAsyncComponent异步加载文件js时,文件不携带referrer。
生成的代码:
<link rel="modulepreload" as="script" crossorigin="" href="/static/js/0854.js">
link 的rel为
modulepreload
时不携带referrer,导致防盗链时文件403.我需要怎么做才能携带上referrer?配置nginx方案暂不考虑。期望:使用defineAsyncComponent异步加载文件js时能携带上referrer。
Reproduction
https://github.com/sunjianxu/vite-bug-report
Steps to reproduce
No response
System Info
system: window10 vite:"^2.6.14" 浏览器:chrome
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: