問題
-
クッキーに sameSite 属性を 'Strict' として追加する方法
JSESSIONID,COOKIE_SUPPORT,GUEST_LANGUAGE_ID
JBoss EAP 7.2
環境
- Liferay DXP 7.4
- JBoss EAP 7.2
解像度
- JBoss で、
jboss/standalone/configuration/standalone.xml
に移動します。 -
standalone.xml
を編集し、<session-cookie http-only="true" secure="true"/>
を以下のように既存のコードに追加する:
<servlet-container name="default">
<jsp-config/>
<session-cookie http-only="true" secure="true"/>
<websockets/>
</servlet-container>
3. undertow-handlers.conf
という新しいファイルを以下のコードで作成し、 WEB-INF
フォルダに保存する。
samesite-cookie(mode=STRICT)
4. サーバーを再起動する。