We have a sporadic issue when we setup some data to the localStorage in a separate tab, then when we load the same domain in the same browser in iFrame under another domain, we don't see those data. The issue happens only to some specific user and locally we can not reproduce it.
Most of users who has this issue are using Windows OS. The workflow we use is the next.
- Open a new tab with a project domain like internal.com
- Login the user and store the access token to the localStorage
- Open client's project domain like external.com
- Make sure that 3rd-party cookies are enabled
- Add an iFrame under external.com with the internal.com address
- Verify that the content of internal.com is loaded in iFrame as expected
What is the expected result?
In the localStorage of the iFrame with the internal.com address under the external.com tab, we should see the data we set in the browser tab with the internal.com address
What happens instead?
The localStorage of the iFrame with the internal.com address under the external.com tab is empty.
We started getting such issue since the beginnign of August, approximately. Anybody has faced the same or know the reason?
We've checked all the possible browser settings, insluding 3rd-party cookies and CORS policies.
Here are some official resources to follow-up the issue:
A
) which stores data in local storage and that data should be retrievable whenA
is embedded into other pages asiframe
. But with this chrome feature now the webpageA
cannot see it's own saved data in local storage when embedded into other pages. – Madeup