legacy-knowledge-base
公開されました Sep. 10, 2025

ローカル環境でログインに失敗する

written-by

Bae Helene

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

問題

  • ローカル環境で以下のエラーが発生し、ログインができなくなりました。

[SecurityPortletContainerWrapper:416] User 0 is not allowed to access URL http://localhost:8080/web/guest/home and portlet com_liferay_login_web_portlet_LoginPortlet: User 0 did not provide a valid CSRF token for com.liferay.portlet.SecurityPortletContainerWrapper
  • 次のキャッシュをクリアした後、起動しても同様のエラーが発生します。
    • {LIFERAY_HOME}/work を削除
    • {LIFERAY_HOME}/osgi/state を削除
    • {TOMCAT_HOME}/temp を削除
    • {TOMCAT_HOME}/work を削除
    • Webブラウザのキャッシュを削除

環境

  • Liferay DXP 7.2

解決

  • Tomcat_HOME/webapps/ROOT/WEB-INF/web.xml でクッキーのSecure属性が設定されている場合、発生する事象です。
<cookie-config>
      <secure>true</secure>
</cookie-config>
  • HTTPSでアクセスしていない場合、当該タグを削除した上で再度ご確認ください。

追加情報

 

did-this-article-resolve-your-issue

legacy-knowledge-base