#Is it possible to access the document or cookies in Appsmith?
1 messages · Page 1 of 1 (latest)
No, there isn't. If you are embedding appsmith from a parent iframe, you can communicate messages to the iframe. You could have a script running from the parent window communicate cookies to the appsmith embed iframe.
see: https://docs.appsmith.com/reference/appsmith-framework/widget-actions/post-message
https://github.com/appsmithorg/appsmith/issues/9965#issuecomment-1158756258
The Post message action uses the postWindowMessage() function to enable safe cross-origin communication between different Window objects; for example, between an app and an iframe embedded within it. This may be useful in situations like:
otherwise, if you aren't embedding your appsmith app within an iframe, then there wouldn't be any way to access the DOM or cookies.