Replies: 1 comment
-
when use Firefox browser, referer not missing ! so this is Vite BUG or Chrome BUG ? 需要Chrome浏览器 或者 Edge浏览器才能复现,vite vite 的modulePreload是不是要支持下 link 的 referrerpolicy属性设置防止 referrer丢失?? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
vite version 3.1.8
vue version 3.2.3
chrome version latest
vite
build.modulePreload
will missing http header referer in Chrome Browser,but firefox not.I suggest
modulePreload
add config item forlink
tagreferrerpolicy
attribute .like this
<link as="script" rel="preload" href="/path/to/anything.js" referrerpolicy="origin">
打包后的动态引入的js模块,http header referer字段丢失,由于服务器做了防盗链,导致无法请求子模块。请问如何配置vite才能防止请求头丢失!
Beta Was this translation helpful? Give feedback.
All reactions