Unable to switch to iframe in iOS mobile Web (Safari)

Unable to switch to iframe in iOS mobile Web (Safari). We did “Disable Cross-Origin Restrictions” from the develop menu in the real device.

Device: iPhone 13 Pro Max
OS Version: 17
java-client: 8.6.0
selenium-java: 4.12.0

Getting below error,

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Blocked a frame with origin “https://example.com” from accessing a cross-origin frame. Protocols, domains, and ports must match.

Does anyone have any idea about this?

@mykola-mokhnach