title: Safari and cookies in iframe
body: <p>Safari browser blocks 3rd party cookies by default.</p>
  
  <p>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.</p>
  
  <p>So I found this solution: <a href="https://github.com/vitr/safari-cookie-in-iframe" rel="noreferrer">https://github.com/vitr/safari-cookie-in-iframe</a></p>
  
  <p>But in my case it doesn't work because to set the cookie, the user first has to click a button.</p>
  
  <p>The framed.html is infact like this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Framed Page&lt;/title&gt;
  &lt;/head&gt;
  &lt;body style="background-color: lightcoral;"&gt;
  &lt;h2&gt;This is the framed site&lt;/h2&gt;
  
  &lt;div border="0" class="cookie_button" id="continue_button" onclick="SetCookie('cookieAcceptanceCookie','accepted',9999);"&gt;accept&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is there a solution to my problem?</p>