ฉันมี Google Site ที่มีหลายหน้าทั้งหมดมี Google Apps Script Gadget ผู้ใช้รายงานว่าเมื่อสองสามเดือนที่ผ่านมา Apps Script Gadgets หยุดทำงาน ฉันได้ทดสอบแล้ว และพบว่าแกดเจ็ต Apps Script โหลดอย่างถูกต้องและแสดงเนื้อหาจากบริการ UI อย่างไรก็ตาม เมื่อมีการคลิกปุ่มใดๆ ที่เรียกใช้ฟังก์ชัน Gadget สคริปต์ของ Apps จะหยุดทำงานและข้อผิดพลาดของคอนโซลในเบราว์เซอร์แสดง:
Uncaught SecurityError: Failed to read the 'frame' property from 'Window': Blocked a frame
with origin "https://sites.google.com" from accessing a frame with origin
"https://xxxxxxxxxxxxxxxx-a-sites-opensocial.googleusercontent.com".
Protocols, domains, and ports must match.
Google ได้เปลี่ยนแปลงนโยบายความปลอดภัยบางประเภทที่ป้องกันไม่ให้ส่งคำขอ Cross Origin ไปยัง Apps Script Scripts หรือไม่ มีวิธีแก้ไขปัญหาใด ๆ สำหรับสิ่งนี้หรือไม่?
ขอบคุณ
สตู
<a href="https://URL to Your deployed AppsScript.com" target="_blank">My Gadget Name</a>
- person Alan Wells   schedule 16.04.2014