Picture of Sascha
Registered 5 years 141 days
Sascha Tuesday, 26 July 2022, 10:50 AM
Mac OS or iOS, MyApps and Cookies over the Iframe
Hello innovaphone team,

I have a little problem with my cookies and myapps on mac os and also on iOS.

Here are the main informations I can give you.

1) We have a v13 app which redirects to a webpage which is hostes by us.
2) We do the sso login like it is provided by myapps
3) The login works normally
4) The user gets logged out immediately after the login was done successfully

This happens mainly when we use our apps with myapps and iOS. But it now also happens with macOS Version 12.4 and myapps 136340.

With an older version of myapps it worked without a problem on macOS.

I would presume that is because Apple prevents a Thrid Party Cookie to be
saved over an iframe.

We have already set the cookie with these settings:
SameSite = None
Secure = true

Is there a way that I could send a event from the iframe to myapps so that myapps will set the cookie for me?

Something like a window.parent.postMessage?

Greetings,
Sascha




Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Tuesday, 2 August 2022, 12:10 PM
Re: Mac OS or iOS, MyApps and Cookies over the Iframe
Hello Sascha,

it seems to be Webkit developers expect from you to use local Storage, instead of Cookies:

https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/

We can not do much in this matter.

Best Regards
Andreas Fink
Picture of Sascha
Registered 5 years 141 days
Sascha Tuesday, 2 August 2022, 03:07 PM
Re: Mac OS or iOS, MyApps and Cookies over the Iframe
Hi Andreas,

I have also found this. But I'm worried that even this way will be removed in a future update to prevent third party cookies and tracking cookies.

But I will look into it and see if it will resolve the problems we have at the moment.

Regards,
Sascha
Picture of Sascha
Registered 5 years 141 days
Sascha Thursday, 4 August 2022, 02:44 PM in response to Andreas Fink (innovaphone)
Re: Mac OS or iOS, MyApps and Cookies over the Iframe
Hello Andreas,

I have tried some things with the informations which you have provided for me.

As I can see it till not even if the user is clicking a button I can't gain access to the Storages Access API.

I open a Message Box in our application in which we have a yes and no button. But when the user clicks on the yes button the API tells me that I won't get access.

Could this because of the fact that the iframe is not the sandboxed version?

I can get it to work when I open a new window with window.open but this works becuase I have now a toplevel scope and it is not in a iframe anymore.

Kind Regards,
Sascha
← You can define your color theme preference here