Cannot open local file - Chrome: Not allowed to load local resource

后端 未结 14 1467
不知归路
不知归路 2020-11-22 12:01

Test browser: Version of Chrome: 52.0.2743.116

It is a simple javascript that is to open an image file from local like \'C:\\002.jpg\'

function run(         


        
14条回答
  •  清酒与你
    2020-11-22 12:41

    Chrome specifically blocks local file access this way for security reasons.

    Here's a workaround to enable the flag in Chrome (and open your system up to vulnerabilities):

    c:\Program Files (x86)\google\chrome\Application\chrome.exe --allow-file-access-from-files

提交回复
热议问题