Share feedback, ideas and get community help

Updated last year

Remember User - iFrame

At a glance

The community member's post indicates that Typebot does not remember a user when called via an iFrame, and they are asking if there is a way around this or if it is unexpected behavior. In the comments, another community member suggests that the information is stored in either session or local storage, and that accessing local storage from an iFrame requires the third-party URL and HTML file to be hosted on the same domain. The community member also suggests using window.postMessage to access the data across windows or iFrames.

Useful resources
It appears that Typebot will not remember a user if called via an iFrame. Is there any way around that or is this unexpected behaviour?
B
1 comment
The information is stored on either session or local storage.

You cannot access the local Storage from an iframe unless the third party URL and html file hosted are on the same domain. and for your use case you could use the window.postMessage to access the data across the windows or iframes.

https://stackoverflow.com/questions/61554531/how-to-use-localstorage-in-iframe
Add a reply
Sign up and join the conversation on Discord