Skip to content

Commit

Permalink
docs(API): add detoxDisableWebKitSecurity launch-arg API.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Mar 29, 2024
1 parent ded6510 commit c3ccdaa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/api/device.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,25 @@ await device.launchApp({
});
```
#### 12. `detoxDisableWebKitSecurity`—Disable WebKit Security (iOS Only)
Disables WebKit security on iOS. Default is `false`.
This is useful for testing web views with iframes that loads CORS-protected content.
:::caution Important
Some pages may not load correctly when WebKit security is disabled (for example, PCI DSS-compliant pages).
Disabling WebKit security may cause errors when loading pages that have strict security policies.
:::
```js
await device.launchApp({
launchArgs: { detoxDisableWebKitSecurity: true }
});
```
### `device.terminateApp()`
By default, `terminateApp()` with no params will terminate the app file defined in the current [`configuration`](../config/overview.mdx).
Expand Down

0 comments on commit c3ccdaa

Please sign in to comment.