Is there no easy way to block all cookies in WKWebview? I see there is +[WKWebsiteDataStore nonPersistentDataStore] but cookies still are saved. There is WKHTTPCookieStore prorperty on WKWebsiteDataStore.I see there is a way to delete cookies one at a time asynchronously, which is kind of annoying if I just want to allow users to block cookies if they want to. As far as I can tell the only way to 'block cookies would be to do the following:WKHTTPCookieStore *cookieStore = store.httpCookieStore; [cookieStore getAllCookies:^(NSArray<nshttpcookie*>*cookies) { for (NSHTTPCookie *aCookie in cookies) { [cookieStore deleteCookie:aCookie completionHandler:^{ //cookie deleted. }]; } }];Is there no better way?I could (I guess?) add an WKHTTPCookieStoreObserver and run the above code every time the cookie store changes, which seems pretty ridiculous.
Search results for
ASWebAuthenticationSession cookie
1,297 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Try to open the page using a Private Browsing mode window, it should work.I believe removing existing cookies should also solve this 403 Forbidden issue, (but I'd prefer avoid doing that).
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Tags:
So, in iOS14 beta 3 I get the error com.apple.AuthenticationServices.WebAuthenticationSession error 2. when ever I arttempt ASWebAuthenticationSession.
Turns out you need to add ASWebAuthenticationPresentationContextProviding. if #available(iOS 13.0, *) { self.webAuthSession?.presentationContextProvider = self }Then have your class conform to ASWebAuthenticationPresentationContextProviding by doing.extension MyClass: ASWebAuthenticationPresentationContextProviding { @available(iOS 13.0, *) func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor { return UIApplication.shared.keyWindow! } }
Topic:
App & System Services
SubTopic:
Core OS
Tags:
I'm getting frequent hangs with Safari in Catalina beta 3, 19A512f. Safari version 13.0 (15608.1.34.1.1)Many/most websites.I have not observed this behavior in a clean install. I am observing this in an upgrade to Catalina.I have cleared out all Safari history that I've read about. All cookies, plugins, extensions. Still occurring although less frequently.
Team,Adobe Target Banners are not rendering in Safari 12.1 version but it is working fine in Safari 11.x version. Any one has solution for this I belive, it is becasue of cookies not rendering properly in Safari 12.x version. in Safari 11.x, we have option for allow all cookies, that is why is working in Safari 11.x. In Safari 12.x have option block all cookies which is already unchecked even then it is not working. Any help is appreciated. Thanks,Vimak
I have an application that needs a token to view a certain page in a SFSafariViewController instance.I want to be able to clear out the session when the user decides to log out from the iOS app.I really don't want to resort to using WKWebView or pushing them directly to safari the SFSafariViewController is perfect for this use.Is it possible to delete the cookies from the SFSafariViewController instance? This is a big issue 😟ThanksEthan
Hey there,We're working on our updated Safari Extension and have a version working that mimics the behavior of our legacy extension. This unfortunately still requires users to disable Prevent cross-site tracking (ITP) which we want to resolve ASAP.Our extension injects an iframe into the current tab to show you a Composer hosted on our domain for sharing the current page on various Social Media networks. As far as I can tell it looks like the solution is to use the Storage Access API so our domains cookies are accessible in the current tab. I wondered if anyone is able to confirm that and perhaps point me in the right direction in terms of how its implemented within a Safari extension? I tried a few different approaches with this API, each time being granted access but the page within the iframe still didn't correctly load my logged in session.One other thought is to allow the user to authenticate within the wrapper Mac app, however I'm unsure how to securely pass the keychain item to the iframe.Than
Updated a few days ago to beta 5 and now firefox just craches as soon as it startsno work around, it seems via google a apple problemany updates? as I also tried last 3 versions of firefox and the sameBuildID: 20190717172542CrashTime: 1564910661EventLoopNestingLevel: 1FramePoisonBase: 9223372036600930304FramePoisonSize: 4096InstallTime: 1564060104ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}ProductName: FirefoxReleaseChannel: releaseSafeMode: 0SecondsSinceLastCrash: 446StartupCrash: 1StartupTime: 1564910661ThreadIdNameMapping: 6:Gecko_IOThread,7:JS Watchdog,11:JS Helper,9:JS Helper,8:JS Helper,10:JS Helper,12:Timer,13:Socket Thread,15:StreamTrans #1,16:Cache2 I/O,17:Cookie,18:DOM Worker,18:IPDL Background,Throttleable: 1UptimeTS: 1.02095745Vendor: MozillaVersion: 68.0.1This report also contains technical information about the state of the application when it crashed.
I access to the ITC, i go to the features and select one IAP, for example,:monthly subsicription I want to check the current price of this IAP, when I click on the view all subscription price the page is automatically turn back to the home pages. i try re-login or restart the laptop, even clean the browser caching and cookie. nothing changes , it still automatically go back to the homepage. please help!
Can I manage cookies with no expiration date programmatically in WKWebView in iOS 9 ?In iOS 11, I checked to can use WKWebsiteDataStore to get cookies with no expiration date.But I need in iOS 9 not in iOS 11and need to get without expiration date cookies from WKWebView.please help me.
Does anyone else have issues with cookies in WKWebview on iOS 13? It worked on iOS 12.We need our app which runs in WKWebview on a custom protocol (custom://localhost) to call servers with cookies which allow this origin. The login returns a cookie but it is not used for subsequent requests.This webkit bug is related: https://bugs.webkit.org/show_bug.cgi?id=140205
I can confirm that there are some serious issues with cookies in WKWebview iOS 13 beta 7. Ours is a Cordova application using WKWebview. The browser doesn't return cookies back to server at all. Previously we had a similar problem that cookies were ignored on the first run after the app installation. In iOS 13 beta 7 it seems like cookies are gone entirely. We use cookies for session management which makes it a show stopper for us.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Hi josefrommadridFor the scenario you describe, we expect your server to issue its own session token / cookie of appropriate TTL to the app which can then use it for subsequent calls.
Topic:
App & System Services
SubTopic:
General
Tags:
After further investigation, it appears that problem occurs when using PUT method instead of GET. PUT does not works with NSURLSession and NSURLConnection, whereas it works fine with GET. Same problem with POST request.Workaround : make an GET call before PUT to register credential but this is a security hole because Credential must persist during session lifecycle.Note : code works fine without client authentification.here are the logs :2019-08-26 12:31:47.854495+0200 mobileHSM DEV[3186:973995] CFNetwork Diagnostics [3:1] 12:31:47.853 {LoaderWhatToDo: (null) Request: <CFURL 0x283b747e0 [0x2498d3840]>{string = https://myURL/hsm/device, encoding = 134217984, base = (null)} CachePolicy: 0 WhatToDo: originload CreateToNow: 0.00208s} [3:1]2019-08-26 12:31:47.854885+0200 mobileHSM DEV[3186:973998] CFNetwork Diagnostics [3:2] 12:31:47.854 {AddCookies Continue: request POST https://myURL/hsm/device HTTP/1.1 HTTPProtocol: Task: 83e5ee80} [3:2]2019-08-26 12:31:47.855119+0200 mobileHSM DEV[3186:973998] CFNetwork
Topic:
App & System Services
SubTopic:
Networking
Tags: