Original error when I'm trying switch to iframe. Same code working fine with desktop browsers. This happens only with safari mobile browser. I'm on appium v1.20.2
SecurityError: Blocked a frame with origin "https://xxxxx.com" from accessing a cross-origin frame. Protocols, domains, and ports must match.
I found this post but that was 3 years ago,so is there any new solutions for this? https://developer.apple.com/forums/thread/80927