-
Notifications
You must be signed in to change notification settings - Fork 408
Description
This is related to #444 and #390 I believe, but the solutions proposed there don't work for my case. In my case, the cookie has a domain
set, which is not the host I make the request to. So it's probably the correct behavior to reject the cookie.
But I don't care about the cookies and would like to get rid of the warning it produces, which is
WARNING: Cookie rejected [JSESSIONID="EC53F...26063", version:0, domain:subdomain-a.example.com, path:/, expiry:null] Illegal 'domain' attribute "subdomain-a.example.com". Domain of origin: "subdomain-b.example.com"
I tried both {:cookie-policy :standard, :decode-cookies false}
and the (http/with-middleware (remove #(= % clj-http.cookies/wrap-cookies) http/default-middleware)
hack, but the warning is still there.