Message Boards

User 0 did not provide a valid CSRF on google Chrome ?

majdi Achouri, modified 3 Years ago.

User 0 did not provide a valid CSRF on google Chrome ?

Junior Member Posts: 38 Join Date: 11/21/19 Recent Posts
Hello Guys
I'm using Liferay 7.3.0,  I have an issue when trying to log into my portal as a user , The problem is when I invoke the login button of an MVC Portet responsible for the login stuff, I got this error in the console log when clicking on the Login submit button  :

User 0 is not allowed to access URL https://myPortal.com/web/particulier/authentification and portlet com_mb_authentification_mvcportlet: User 0 did not provide a valid CSRF token for com.liferay.portlet.SecurityPortletContainerWrapper


When I click on the button the action is not invoked and anything is happened and the error  above gets displayed in the console.
Remark: In Mozila Firefox there is no problem everything seems to work finr, but ONLY I have this problem on Google chrome.
Any help please, 
Regards
Majdi,
thumbnail
Christoph Rabel, modified 3 Years ago.

RE: User 0 did not provide a valid CSRF on google Chrome ? (Answer)

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
Such an error sometimes happens when cookies are disabled. Could you check? An extension perhaps?
majdi Achouri, modified 3 Years ago.

RE: User 0 did not provide a valid CSRF on google Chrome ?

Junior Member Posts: 38 Join Date: 11/21/19 Recent Posts
Christoph Rabel Many Thanks...     +1
Resolved by activating the cookies!! 
Now I can access to my portal.

Regards
Majdi