open -a "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --args --allow-file-access-from-files --disable-web-security
出于安全原因Chrome不会加载本地文件。
本文介绍了一种特殊的方法来启动Chrome浏览器,使其能够加载本地文件并禁用网页安全限制。这对于某些开发场景非常有用。
open -a "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --args --allow-file-access-from-files --disable-web-security
出于安全原因Chrome不会加载本地文件。
转载于:https://www.cnblogs.com/azterzmshan/p/5412889.html
4483

被折叠的 条评论
为什么被折叠?