Hi Christophe,

yes, that's correct. There seems to be no way to model custom cookie 
attributes right now. Using RawHeader is the right workaround for now. I 
filed https://github.com/akka/akka-http/issues/1354 to discuss improvements.

Johannes

On Monday, August 14, 2017 at 10:31:11 AM UTC+2, Christophe Pache wrote:
>
> Hello everyone!
>
> I'm trying to add a sameSite attribute to cookies using the scaladsl and 
> it looks like the Cookie API is quite closed. What I would like to do is 
> something like 
> `Set-Cookie: key=value; HttpOnly; SameSite=strict`
> My feeling is that the only current way to do so is to craft a header with 
> something like 
> `RawHeader("Set-Cookie", "key=value; HttpOnly; SameSite=strict")`
> If so, what about adding attributes to cookie header?
>
> Thanks for any comment on that! Have a nice akking day!
> Christophe
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to