diff --git a/backend/src/uxbox/http/handlers.clj b/backend/src/uxbox/http/handlers.clj index fcb6371a3..c21d3d1d9 100644 --- a/backend/src/uxbox/http/handlers.clj +++ b/backend/src/uxbox/http/handlers.clj @@ -55,7 +55,7 @@ (-> (session/delete token) (p/then' (fn [token] {:status 204 - :cookies {"auth-token" {:value nil}} + :cookies {"auth-token" nil} :body ""}))))) (defn register-handler diff --git a/backend/src/vertx/web/interceptors.clj b/backend/src/vertx/web/interceptors.clj index 41d08b659..bca322513 100644 --- a/backend/src/vertx/web/interceptors.clj +++ b/backend/src/vertx/web/interceptors.clj @@ -55,7 +55,9 @@ ^HttpServerResponse res (get-in data [:request ::vh/response])] (when (map? cookies) (vu/doseq [[key val] cookies] - (.addCookie res (build-cookie key val)))) + (if (nil? val) + (.removeCookie res key) + (.addCookie res (build-cookie key val))))) data))}) ;; --- Params