You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I make a network request using `URLSession` while running some code that is compiled and run through the XCode ecosystem, the cookies returned by the request are automatically stored and available. However, when I run the same Swift code on an Ubuntu docker image, the cookies returned by the response are not saved automatically. The cookies do come back from the server as I was able to print their values after the network response came back, but, they don't get stored. As a workaround, I explicitly tried to write to the local data store by calling `HTTPCookieStorage.sharedCookieStorage(forGroupContainerIdentifier: <name>).setCookie(thisCookie)`. However, even after I did this, the cookie value got cleaned while making the subsequent network request.
Expected Behavior:
URLSession's Cookie handling logic for Linux needs to be consistent with iOS and MacOS.
The text was updated successfully, but these errors were encountered:
Environment
Swift Version 4.2
Additional Detail from JIRA
md5: 41a23e50bdc5f3e31783f819d9a30d9e
Issue Description:
Current Behavior:
When I make a network request using `URLSession` while running some code that is compiled and run through the XCode ecosystem, the cookies returned by the request are automatically stored and available. However, when I run the same Swift code on an Ubuntu docker image, the cookies returned by the response are not saved automatically. The cookies do come back from the server as I was able to print their values after the network response came back, but, they don't get stored. As a workaround, I explicitly tried to write to the local data store by calling `HTTPCookieStorage.sharedCookieStorage(forGroupContainerIdentifier: <name>).setCookie(thisCookie)`. However, even after I did this, the cookie value got cleaned while making the subsequent network request.
Expected Behavior:
URLSession's Cookie handling logic for Linux needs to be consistent with iOS and MacOS.
The text was updated successfully, but these errors were encountered: