From 5f723d2f295dbf659d4b7d4f5247cf1c759da242 Mon Sep 17 00:00:00 2001 From: Johannes Schliephake Date: Tue, 26 Jan 2021 00:32:16 +0100 Subject: [PATCH] Don't retain session (after switching accounts) --- Shared/Utilities/NCPasswordsRequest.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Shared/Utilities/NCPasswordsRequest.swift b/Shared/Utilities/NCPasswordsRequest.swift index 464706e6..4b417544 100644 --- a/Shared/Utilities/NCPasswordsRequest.swift +++ b/Shared/Utilities/NCPasswordsRequest.swift @@ -50,6 +50,7 @@ extension NCPasswordsRequest { request.httpMethod = method request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.setValue("Basic \(authorizationData.base64EncodedString())", forHTTPHeaderField: "Authorization") + request.httpShouldHandleCookies = false request.httpBody = encode() URLSession(configuration: .default, delegate: nil, delegateQueue: .main).dataTask(with: request) {