2***@qq.com
2***@qq.com
  • 发布:2024-10-16 16:50
  • 更新:2024-10-16 17:14
  • 阅读:46

设置了支持file协议打开,打包h5页面,怎么还是不行呢?请大神指教

分类:HBuilderX

本地预览index.html 报如下错误:
Access to script at 'file:///F:/source/uniappny/unpackage/dist/build/web/assets/index-CY6TY4Ub.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: chrome, chrome-extension, chrome-untrusted, data, http, https, isolated-app.
index-CY6TY4Ub.js:1

   Failed to load resource: net::ERR_FAILED  

index.html:1 Access to CSS stylesheet at 'file:///F:/source/uniappny/unpackage/dist/build/web/assets/index-CK66o_n0.css' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: chrome, chrome-extension, chrome-untrusted, data, http, https, isolated-app.
index-CK66o_n0.css:1

   Failed to load resource: net::ERR_FAILED
2024-10-16 16:50 负责人:无 分享
已邀请:
靐齉齾麤龖龗

靐齉齾麤龖龗 - 解决不了问题,那就解决提出问题的人

不要加index.html

要回复问题请先登录注册