Safari browser blocks 3rd party cookies by default.
I have site A (main site) that loads site B (framed site) in the iframe. Site B sets some cookies ( WHEN THE USER CLICK A BUTTON ), to function properly. These cookies are called 3rd party cookies, as they are not set by site A.
So I found this solution: https://github.com/vitr/safari-cookie-in-iframe
But in my case it doesn't work because to set the cookie, the user first has to click a button.
The framed.html is infact like this:
<!DOCTYPE html>
<html>
<head>
<title>Framed Page</title>
</head>
<body style="background-color: lightcoral;">
<h2>This is the framed site</h2>
<div border="0" class="cookie_button" id="continue_button" onclick="SetCookie('cookieAcceptanceCookie','accepted',9999);">accept</div>
</body>
</html>
Is there a solution to my problem?