cancel
Showing results for 
Search instead for 
Did you mean: 

ADF- CSRF Token Error

sanjaybandhniya
Elite Collaborator
Elite Collaborator

I am using ADF with APS. In Local environment I am able to login but as a connect my development environment(https),it is giving CSRF Token error.

imageWhat is the solution of this?

Here mention that i need to disable csrf token.https://hub.alfresco.com/t5/application-development/http-status-403-invalid-csrf-token/m-p/110927#M1 

Will it create any other problem? 

6 REPLIES 6

dvuika
Star Collaborator
Star Collaborator

You don't need CSRF with ADF applications (and any other single-page application).

Is this problem of APS and ADF Version?

APS: 1.9

ADF:3.9

I am using above version.

You are saying not need of CSRF then what should cause of error?

Just switch it off via attributes as Login dialog suggests you

I have tried as per your instruction.

It is saying that it is unknown property.

<adf-login
  copyrightText="© 2018 Alfresco Software, Inc. All Rights Reserved."
  successRoute="/apps" [disableCsrf]="true">
</adf-login>
 
image
 
I have customized page where need to provide login so I am using below code for login.
 
this.authService.login(username,password).subscribe();