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

ユーザーが CSRF エラーでログインできない

written-by

Anishq Sharma

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

問題

  • ユーザーがログインできず、ログに次のエラーが表示されます。
    User 0 did not provide a valid CSRF token for com.liferay.portlet.SecurityPortletContainerWrapper

Environment

  • Liferay DXP 7.3

解決策

  • まず、次の記事に従って問題を解決できるかどうかを確認してください:
    無効な CSRF トークンの警告
  • そうでない場合は、server.xmlでAJPの代わりにポート番号が使用されていることを確認し、存在する場合はApacheサーバーで同じポート構成が行われます。
  • また、portal-ext.properties ファイルに以下のプロパティを追加します。
    web.server.protocol=https
    web.server.https.port=443
did-this-article-resolve-your-issue

legacy-knowledge-base