tannerkrewson / rocketcrab

party games for phones

Home Page:https://rocketcrab.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable To Load Game When Third-Party Cookies Blocked

donovangini opened this issue · comments

Hey there! I enjoy playing the game but noticed it not working for me recently.

I have Chrome set to block third party cookies. However, when I begin playing in a game, I get a Loading screen and cannot play. If I allow cookies for the site, it works.

I inspected the console and saw the following:

Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

Something seems to be trying to access local storage from a third party. I haven't looked too much at the code, but it seems to be due to the fact that the page is being rendered as an iframe with a different origin. If I visit the underlying site (within the iframe) it works fine even with 3rd party cookies blocked. In the next few years, Chrome will be phasing out third-party cookies and this sort of behavior within an iframe because of potential security/privacy issues.

Wanted to bring this to your attention so you could address if you want to!