addCookie() usage

I’m trying to add a custom cookie, reading this ML post and this issue thread.

However, when I try to call exec(addCookie(“cookieName”, “cookieValue”)), I get a “too many arguments for method addCookie” error at compile time (same if I include the domain, or the domain and path). I checked out the signature in Predef.scala, but I’m not sure how to use CookieDSL. Am I just reading outdated information? I’m on 2.0.0-SNAPSHOT.

Yep, the information is outdated, here's the new documentation:

Thanks! (I think I managed to read every other page in that folder and miss that one.)

It was actually missing. Your question made me realize that :slight_smile: