-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Is your feature request related to a problem? Please describe.
If I am not mistaken (and sorry for the noise if I am),
cordova-plugin-webview-proxy/src/ios/WebviewProxy.m
Lines 50 to 59 in 0e5bfc9
| [[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { | |
| if(error && (self.stoppedTasks == nil || ![self.stoppedTasks containsObject:urlSchemeTask])) { | |
| @try { | |
| NSLog(@"WebviewProxy error: %@", error); | |
| [urlSchemeTask didFailWithError:error]; | |
| return; | |
| } @catch (NSException *exception) { | |
| NSLog(@"WebViewProxy send error exception: %@", exception.debugDescription); | |
| } | |
| } |
document.cookie) won't be used in any request. It would be nice to set cookies on the client as well.
Describe the solution you'd like
Ideally, something like window.WebviewProxy.setCookie() with the same behavior as document.cookie should do the job.
Additional context
I am testing this in a Meteor/Cordova context where I had no luck with app-bound-domains. This issue explains the issue in conjunction with Meteor risetechnologies/cookieTest#2 (comment)
Also thanks a lot @NiklasMerz for open sourcing your approach, IMHO this is a slim and neat way to tackle ITP issues! 🚀
NiklasMerz
Metadata
Metadata
Assignees
Labels
No labels