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
On macOS, one can set the `isSecure` attribute of an HTTPCookie by simply having an entry for `HTTPCookiePropertyKey.secure` in the dictionary that is passed to `init(properties: [HTTPCookiePropertyKey : Any])` initialiser.
The only way to not have `isSecure` set to `true` is to not have an entry for the `HTTPCookiePropertyKey` in the dictionary.
On Linux, we have a different behaviour. There, the `isSecure` attribute is true if and only if the value if of the type String, and is not empty. It is false otherwise.
Additional Detail from JIRA
md5: acf09b4524174255f39bf28598341655
Issue Description:
On macOS, one can set the `isSecure` attribute of an HTTPCookie by simply having an entry for `HTTPCookiePropertyKey.secure` in the dictionary that is passed to `init(properties: [HTTPCookiePropertyKey : Any])` initialiser.
The only way to not have `isSecure` set to `true` is to not have an entry for the `HTTPCookiePropertyKey` in the dictionary.
On Linux, we have a different behaviour. There, the `isSecure` attribute is true if and only if the value if of the type String, and is not empty. It is false otherwise.
See this line of code: https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/HTTPCookie.swift#L287
The text was updated successfully, but these errors were encountered: