I am running a Google Sheet on my Drive. From this Sheet I am scripting to load an iframe with an embedded, editable Google Form. I can achieve an embed with the Form's getpublishedURL but I want to display the Form's geteditURL.
The Form's geteditURL X-frame-options are set to SAMEORIGIN so I cannot just swap the "published" and "edit" urls and add the ?embedded=true flag to the geteditURL. Doesn't work.
I have submitted for verification to have oauth consent scope for /auth/drive which is described as allowing edit permissions for drive files. I used my sheet's URL as my "website" so they would really understand what I mean.
If my verification is approved, will this allow me to use the Form's geteditURL without further issue or will the X-frame-options issue persist?
Is there any other workaround?
I am not using a website for this app, at least for now. The idea for now is I could email this sheet to someone, let them save it to their own Google Drive folder. They would authorize the consent for the scripts to run on their own Drive, and that's it.
So 'technically' everything IS being run on the "SAMEORIGIN" but Google doesn't make it easy to allow their own tools to play together this way.
I understand why this is the way it is, but are there any workarounds for those of us without malicious intent or am I doing the right thing already by submitting for verification of the /auth/drive oauth scope?
Thank you!
I want to embed a Google form geteditURL into an iframe and work around the X-frame-options "SAMEORIGIN" limitation for editable forms.