我試圖將在Google Apps腳本中使用JavaScript動態構建的頁面嵌入到iFrame的我的網站中,但未顯示iFrame的內容。 Google Apps腳本具有防止加載的同源策略。將Google Apps腳本嵌入到iFrame中
(我刪除了完整鏈接),我所要做的是:
<iframe src="https://script.google.com/a/macros/SCRIPT_ID"></iframe>
我得到的錯誤是:
Refused to display 'https://script.google.com/a/macros/SCRIPT_ID'
in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
有沒有辦法改變政策和負載iFrame中的內容?
非常感謝!有效! – Technotronic
也適合我! –