I am trying to embed a page that is dynamically built using Javascript in Google Apps Script on my website in iFrame, but the contents of the iFrame are not displayed. Google Apps Script has a policy of the same origin that prevents it from downloading.
I am trying to do this (I deleted the full link):
<iframe src="https://script.google.com/a/macros/SCRIPT_ID"></iframe>
The error I am getting is:
Refused to display 'https://script.google.com/a/macros/SCRIPT_ID' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
Is there a way to change the policy and load the content in an iFrame?
source share