mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-13 12:26:45 +08:00
Added Cookie Header to XML and Websocket request
Summary: Continuation of Pull Request #7167 https://github.com/facebook/react-native/pull/7167 Needed to clean my repository. So created this Pull Request Closes https://github.com/facebook/react-native/pull/10575 Differential Revision: D4955291 Pulled By: shergin fbshipit-source-id: 94b9a086b7cf70ee6cc152d0b1a36c260140450e
This commit is contained in:
committed by
Facebook Github Bot
parent
bea7659762
commit
047961fbf7
@@ -63,6 +63,9 @@ RCT_EXPORT_MODULE()
|
||||
callbackQueue.maxConcurrentOperationCount = 1;
|
||||
callbackQueue.underlyingQueue = [[_bridge networking] methodQueue];
|
||||
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
|
||||
[configuration setHTTPShouldSetCookies:YES];
|
||||
[configuration setHTTPCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
|
||||
[configuration setHTTPCookieStorage:[NSHTTPCookieStorage sharedHTTPCookieStorage]];
|
||||
_session = [NSURLSession sessionWithConfiguration:configuration
|
||||
delegate:self
|
||||
delegateQueue:callbackQueue];
|
||||
|
||||
Reference in New Issue
Block a user