为了提高安全性,ArkWeb内核禁止file协议和resource协议访问跨域请求。因此,在使用Web组件加载本地离线资源的时候,Web组件会拦截file协议和resource协议的跨域访问。通过方法二设置一个路径列表,再使用file协议访问该路径列表中的资源,允许跨域访问本地文件。
An icon used to represent a menu that can be toggled by interacting with this icon. A line drawing of the Internet Archive headquarters building façade. An illustration of a computer application ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果