OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: michaldejmek on March 24, 2022, 09:17:31 PM

Title: NGINX - Missing 'secure' Cookie Attribute
Post by: michaldejmek on March 24, 2022, 09:17:31 PM
Hi, does anyone know how to set this on nginx:

The cookies:

Set-Cookie: JSESSIONID=***replaced***; Path=/; HttpOnly

are missing the "secure" attribute.

Thank you Michal.
Title: Re: NGINX - Missing 'secure' Cookie Attribute
Post by: fabian on March 24, 2022, 09:41:16 PM
To be honest, why don't you set it in the web.xml so your servlet container will handle that.

You can find it in the WEB-INF directory of the war file.