Access-Control-Allow-Origin
XMLHttpRequest cannot load http://api.bing.com/qsonhs.aspx?q=a. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access.在這個課程中怎么解決啊。搜索中,都是提到在服務器代碼中添加什么的!但是這里都沒有服務器端代碼。所以請問一下在這里怎么用原生JS解決?????
2017-06-20
下一個fiddler工具將本地頁面放到某個域里面就可以的