Sunday, October 15, 2023
HomeiOS Developmentios - Is there a method to disable cross-origin useful resource sharing...

ios – Is there a method to disable cross-origin useful resource sharing restrictions in cell safari


So far as I do know, at present it’s not doable to disable cross-origin useful resource sharing restrictions in cell safari. It will be nice if this could possibly be carried out or if somebody is aware of how to do that. This might be an extremely helpful function for automated testing of net purposes on cell Safari.

Sure I do know that we are able to do it with Chrome:
Disable identical origin coverage in Chrome

And there are alternatives to do it with desktop Safari:
https://stackoverflow.com/questions/4556429/disabling-same-origin-policy-in-safari#:~:textual content=Justpercent20enablepercent20thepercent20developerpercent20menu,restrictionspercent22percent20frompercent20thepercent20developpercent20menu.
And to do it manually on Mac for cell Safari:
https://stackoverflow.com/a/72309627/16804973

However I must do it inside Appium/Selenium code and I don’t discover any equal to Chrome possibility “-diasble-web-security”, as a result of there isn’t any such one for Safari: https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/safari/SafariOptions.html

The final data I’ve discovered, was a request on Mac Builders web page about this: https://developer.apple.com/boards/thread/80927

Does anybody has an answer for this these days?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments