So did literally everybody else building a website that was embedded in an iframe. I was there in 2011, at a startup, copying the same StackOverflow answer as everyone else so we could store cookies in Safari.
This is such a non-issue. It was widely regarded as a bug in Safari.