Disable cross-origin resource sharing restrictions in mobile safari

Hi all!


As far as I know, currently it is not possible to disable cross-origin resource sharing restrictions in mobile safari. It would be great if this could be implemented or if someone knows how to do this. This would be an incredibly useful feature for automated testing of web applications on mobile Safari.


Currently some of our tests are blocked by not being able to access the elements inside an iframe because of the cross-origin resource sharing restrictions in mobile Safari. These tests work for all of our target platforms except for mobile Safari. If we were to be able to disable cross-origin resource sharing in a simulated iPhone that would be really helpful.


I look forward to hearing some people's views. Perhaps other people have had similar problems of not being able to access the inside of iframes in automated tests in mobile Safari.

Facing the same issue. All other browsers support cross origin frame switching except Safari on iOS real device. Would be great if someone has any solution to this issue.


@mcoury Please let me know if you found any solution or workaround, Thank you!

That's really awesome if safari disable the origin-cross restrictions.

Now I've come across some difficulties on catching the javascript error on cross-origin website, even I've set the cors settings.

The Error is "Scrpt Error" without any meaningful information for developers.


Both upstairs, Please let me know if you found any solution, Thanks a lot.

I am not able to switch the iframe in mobile safari.Facing the same issue.Please suggest with any workaround solution.

Disable cross-origin resource sharing restrictions in mobile safari
 
 
Q