// 1. 取出需要同步的url (登录请求中返回的重定向地址)
BESTHttpItem *httpItem = [BESTHttpHelper sharedHelper].curHttpItem;
NSString  *url = [NSString stringWithFormat:@"%@/#/login", httpItem.frontend_addr];

// 2. 取出当前的headerFields
NSDictionary *headerFields = [NSHTTPCookie requestHeaderFieldsWithCookies:self.cookies];

// 3. 替换cookie地址
[NSHTTPCookie cookiesWithResponseHeaderFields:headerFields forURL:[NSURL URLWithString:url]];

相关文章:

  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2018-04-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2021-09-26
  • 2022-12-23
  • 2021-11-17
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案