servicestack - Service Stack set HttpCookie.Secure Flag / Attribute? -
i'm trying set secure flag on session cookies (ie https://www.owasp.org/index.php/secureflag).
i've attempted:
public override void configure(container container) { ... config.onlysendsessioncookiessecurely = true; ... }
without success - when viewing in fiddler, chrome developer tools, etc - secure flag not being set. appreciated.
you need use setconfig()
when configuring servicestack, e.g:
setconfig(new hostconfig { onlysendsessioncookiessecurely = true, });
Comments
Post a Comment