Skip to content

使用rsbuild报错Not allowed to load local resource #1323

Answered by chenjiahan
wChenonly asked this question in Q&A
Discussion options

You must be logged in to vote

通过 new URL(url, import.meta.url) 拿到的是一个 file 协议地址,Chrome 应该是不允许加载的,参考 https://support.google.com/chrome/thread/162698059/not-allowed-to-load-local-resource-how-to-fix-this?hl=en

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wChenonly
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@chenjiahan
Comment options

@wChenonly
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants