How to disable same origin policy in the iOS | Appium Forum
H
Hemambika vadivu Posted on 05/12/2019

We are getting webdriver exception and shows that blocked iframe with sameorgin policy and domain name and port  must match

 

We got the exception when  we switch to iframe in safari browser in mobile device . Could you please help me how we can switch to iframe in mobile safari browser when iframe is appearing from different domain


A
Ashish Replied on 11/12/2019

You will have to to use javascript executor for this work.

Please refer this POST:

https://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame