transfer session cookie to iframe by safari browser

I have problem with iframe tag in my project. safari by default block session cookie in iframe and I need transfer cookie to new website with different domain.
I rather choose best solution for this problem.

I add sandbox attribute(allow-same-origin) to iframe but doesn’t work.
is there a way access without using postMessage api and rest service ?