Gsheets query does not work when triggered from iframe

Hi all,

I have a app that sends data to a gsheet in real time. This works perfectly when in I'm in edit or user mode. This app is also deployed as an iframe on another domain and there the google sheet query does not work. This is strange because all my db queries work as intended. Could this be because of google drive domain rules?

  • Goal: I want to send data from my app to a google sheet using the gsheets resource.

  • Steps: Tested all versions of the app: user mode, edit mode,... it all works except in the iframe.

  • Screenshots:

Well I just found the problem. My resource was registering as authenticated, but in reality it wasn't. Re-authenticating with my google account solved this.