Thursday, February 4, 2016

運行網頁遇到 Access-Control-Allow-Origin

問題 XMLHttpRequest cannot load http://xxxxx/xxx.html No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. 解決辦法 html網頁不要放在本機跑 請放到Apache或其它已啟動之伺服器

No comments: