2013-02-11 102 views
2

下面的跨域發佈到Google Apps腳本適用於FireFox(18),但不適用於Internet Explorer 9.Google應用腳本跨域

從我讀過的內容來看,它不應該起作用。

它爲什麼在Firefox上工作?

var url = "https://script.google.com/macros/s/AK..etc../exec"; 
var params = "someParams"; 
var http = new XMLHttpRequest(); 
http.open("POST", url, true); 
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
http.setRequestHeader("Content-length", params.length); 
http.setRequestHeader("Connection", "close"); 
http.send(params); 

回答