---
title: WKSecurityOrigin
framework: webkit
role: symbol
role_heading: Class
path: webkit/wksecurityorigin
---

# WKSecurityOrigin

An object that identifies the origin of a particular resource.

## Declaration

```swift
@MainActor class WKSecurityOrigin
```

## Overview

Overview A WKSecurityOrigin object is a transient, data-only object that identifies the host name, protocol, and port number associated with a particular resource. You don’t create WKSecurityOrigin objects directly. Instead, WebKit creates them for the resources it loads. A first-party load is any load URL has the same security origin as the requesting web site. First-party webpages can access each other’s resources, such as scripts and databases. Because a WKSecurityOrigin object is transient, it doesn’t uniquely identify a security origin across multiple delegate method calls.

## Topics

### Getting the Host Information

- [host](webkit/wksecurityorigin/host.md)
- [port](webkit/wksecurityorigin/port.md)

### Getting the Host Protocol

- [protocol](webkit/wksecurityorigin/protocol.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Page content

- [WKUserContentController](webkit/wkusercontentcontroller.md)
- [WKContentRuleListStore](webkit/wkcontentruleliststore.md)
- [WKContentWorld](webkit/wkcontentworld.md)
- [WKFrameInfo](webkit/wkframeinfo.md)
- [WKUserScript](webkit/wkuserscript.md)
