legacy-knowledge-base
公開されました Jul. 2, 2025

COOKIE_SUPPORT と GUEST_LANGUAGE_ID は安全としてマークされていません。

written-by

Emma Liu

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay DXPで生成されたCOOKIE_SUPPORT & GUEST_LANGUAGE_IDの2つのCookieがあり、Secureと表記されていない。

環境

  • Liferay DXP 7.1 + JBoss

解像度

  • Web ServerおよびApplication Serverの設定に関連します。
  • 安全なチャネル(httpsやajpなど)からリクエストが来た場合、COOKIE_SUPPORT & GUEST_LANGUAGE_IDを含むすべてのクッキーに、自動的に安全フラグが追加されます。
  • 以下に例を示します。
    • Web Server で HTTPS を設定し、module_http を使用して Application Server に接続する。 COOKIE_SUPPORT & GUEST_LANGUAGE_ID は、安全なチャネル(例えば ajp)からのリクエストではないので、安全には設定されていません。
    • Web ServerでHTTPSを設定し、module_ajpでApplication Serverへ接続する。 COOKIE_SUPPORT & GUEST_LANGUAGE_ID は、安全なチャネルからのリクエストであるため、自動的にセキュアに設定される ajp.

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base