The main document URL associated with the request.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
@property(readonly, copy) NSURL *mainDocumentURL;
Discussion
This URL is used for the cookie “same domain as main document” policy.