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

**URL:** <https://discuss.appium.io/t/blocked-a-frame-with-origin-https-appapi-dollar-phil-net-from-accessing-a-cross-origin-frame/38143>\
**Category:** Support\
**Created:** [December 29, 2022, 8:12am UTC](https://discuss.appium.io/t/blocked-a-frame-with-origin-https-appapi-dollar-phil-net-from-accessing-a-cross-origin-frame/38143 "2022-12-29T08:12:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikola\_Popovic1](https://discuss.appium.io/user_avatar/discuss.appium.io/nikola_popovic1/32/10893_2.png) [@Nikola\_Popovic1](https://discuss.appium.io/u/Nikola_Popovic1)\
**Post date:** [December 29, 2022, 8:12am UTC](https://discuss.appium.io/t/blocked-a-frame-with-origin-https-appapi-dollar-phil-net-from-accessing-a-cross-origin-frame/38143/1 "2022-12-29T08:12:07Z")

</div>

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:

```auto
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](https://discuss.appium.io/uploads/short-url/t8D3lxWrDmDXZfTw9qDsT7wuccO.log) (1.1 MB)
