diff --git a/ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift b/ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift index 881b5f6c..87c3446e 100644 --- a/ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift +++ b/ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift @@ -22,7 +22,6 @@ public struct EditorConfiguration { /// The locale to use for translations public var locale = "en" public var editorAssetsEndpoint: URL? - public var cookies: [HTTPCookie] = [] public init(title: String = "", content: String = "") { self.title = title diff --git a/ios/Sources/GutenbergKit/Sources/EditorViewController.swift b/ios/Sources/GutenbergKit/Sources/EditorViewController.swift index 912833bc..9d130aee 100644 --- a/ios/Sources/GutenbergKit/Sources/EditorViewController.swift +++ b/ios/Sources/GutenbergKit/Sources/EditorViewController.swift @@ -37,12 +37,6 @@ public final class EditorViewController: UIViewController, GutenbergEditorContro config.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs") config.setValue(true, forKey: "allowUniversalAccessFromFileURLs") - // The editor shouldn't try to persist cookies – we want complete control over how they're handled - config.websiteDataStore = WKWebsiteDataStore.nonPersistent() - for cookie in configuration.cookies { - config.websiteDataStore.httpCookieStore.setCookie(cookie) - } - // Set-up communications with the editor. config.userContentController.add(controller, name: "editorDelegate")