Safari and 3rd party cookies

We have an issue with our safari extension and 3rd party cookies. Our extension injects some UI elements to website A and allow our users add items from website A to shopping cart on our website B.

Our website B use cookies for authorization and in this case safari block all cookies, so when we do ajax post requests from A to B, request cookies are empty and website B can't recognize which user did request.

We tried to set cookies for 24h - it doesn't help. We tried to call popup window with login function in website A from website B - result is same.

Please discribe how to change our code logic to get all things work.

Maybe we should use localStorage or something?

Did you ever find a solution to this? Running into the same problem.

Safari and 3rd party cookies
 
 
Q