<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -",
    "macOS: 26.4.0 -",
    "visionOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebpagePreferences/securityRestrictionMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebpagePreferences(py)securityRestrictionMode"
  },
  "title" : "securityRestrictionMode"
}
-->

# securityRestrictionMode

```
var securityRestrictionMode: WKSecurityRestrictionMode { get set }
```

## Discussion\abstract Security restriction mode for this navigation.
\discussion Security restriction modes provide different levels of security hardening for high-risk browsing contexts.
WKSecurityRestrictionModeMaximizeCompatibility provides additional hardening while maintaining full web compatibility:

- JavaScript JIT compilation disabled (interpreter-only execution)
- Increased Memory Tagging Extension (MTE) coverage across allocations in the WebContent process
  Setting a security restriction mode creates separate, isolated WebContent processes for the specified protection level.
  This preference only applies to main frame navigations and will be ignored for subframe navigations. When set for a main frame, all subframe content and opened windows inherit the same security restrictions.
  When the system has chosen WKSecurityRestrictionModeLockdown (e.g., in Lockdown Mode), attempts to set a less restrictive mode will fail silently.
  The default value is WKSecurityRestrictionModeNone.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)