Blocked a frame with origin "https://appapi.dollar-phil.net" from accessing a cross-origin frame

Appium: 2.0.0-beta.46
Xcode: 14.0.1
Simulator: iPhone 14 (iOS 16.0)

I’m trying to automate a checkout process with Appium.
Once the checkout page is opened in WebView I switch context from Native to WebView.
Afterwards I try to switch to an iframe and getting following error:

Blocked a frame with origin "https://appapi.dollar-phil.net" from accessing a cross-origin frame. Protocols, domains, and ports must match.

How can I solve this?

Attaching test Appium log.

appium.log (1.1 MB)