0

I am using Laravel, an iframe from domain a.com shows my site at b.com, but in user can't log in to my site and no form can be submitted. It sounds Safari blocks all third party cookies (https://stackoverflow.com/a/63478017/6934036) and old solutions not wording on newer version of safari.

Is there a new way to force safari to store cookies from the site in the iframe?
And if there is no correct way, How can I Force Laravel to authenticate user via local storage instead of cookies?

UPDATE:

Cookies SameSite attributes are None with Secure flag.
Both sites use HTTPS.
it works correctly in chrome and Firefox.

Mohammad Salehi
  • 565
  • 1
  • 12
  • 33

1 Answers1

0

For third-party cookies, you need to specify the SameSite attribute as none.

SameSite=None

Also, many browsers currently require that SameSite=None cookies need also to have the Secure attribute, meaning that they require a secure context to prevent being observed by unauthorized devices.

Apple used to be very strict about security and privacy. So probably this is the reason why your cookies are not working.