這是設(shè)計(jì)到跨域還是什么?
Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.這個(gè)錯(cuò)誤怎么解決
Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.這個(gè)錯(cuò)誤怎么解決
2017-01-03
舉報(bào)
2017-01-06
分析:瀏覽器為了安全性考慮,默認(rèn)對(duì)跨域訪問禁止。
解決:給瀏覽器傳入啟動(dòng)參數(shù)(allow-file-access-from-files),允許跨域訪問。
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files