Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy request cookies from store #6

Closed

Conversation

mattdsteele
Copy link

This addresses my issues with #3; I'm able to acquire a cookie in an In App Browser, and pass it through in requests in the Cordova app.

I'm not especially familiar with Objective C, so please let me know if I've done anything non-idiomatic.

Thanks!

}
NSString *header = [array componentsJoinedByString:@";"];
NSLog(@"Proxy Setting cookie: %@", header);
[request setValue:header forHTTPHeaderField:@"Cookie"];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review.

So this basically sets cookies to the request before sending them? In theory they should already be set by WebKit automatically because they are in the cookie store used by the session that is doing the request.

From my experience this is not really necessary and strangely I did not encouter the issues discussed in #3. Maybe something different is the cause of this issue, but this needs further investigation.

@NiklasMerz NiklasMerz modified the milestone: 1.0.0 May 6, 2021
@mattdsteele
Copy link
Author

FYI I just pulled down the 0.0.4 tag, and it's working for my use case, so I'm going to close this out. Thank you!

@mattdsteele mattdsteele closed this Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants