Skip to content

Commit 3f8bbca

Browse files
committed
set SameSite for all cookies
1 parent c5d5365 commit 3f8bbca

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Context>
3+
4+
<!-- Add SameSite to the cookies -->
5+
<CookieProcessor
6+
sameSiteCookies="strict" />
7+
8+
</Context>

webapp/src/main/webapp/WEB-INF/web.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
1+
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
2+
<session-config>
3+
<cookie-config>
4+
<http-only>true</http-only>
5+
<secure>true</secure>
6+
<comment>__SAME_SITE_STRICT__</comment>
7+
</cookie-config>
8+
</session-config>
39
<display-name>${project.parent.name}; Git-Branch: '${git.branch}'; Git-Commit: '${git.commit.id}' @ ${git.commit.time}; Build time: ${git.build.time}</display-name>
410
<description>This is an OGC SOS.</description>
511
<context-param>

0 commit comments

Comments
 (0)