V
V
Vadim2018-04-04 12:58:44
Django
Vadim, 2018-04-04 12:58:44

How to send CSRF token in Angular 5?

Good afternoon, we are making an application on Angular 5 and Django, there was a problem with CSRF, on the site the user login is done through LinkedIn and a POST request with the necessary information should be sent to the server for authorization, we use the library https://github.com/ronzeidman/ng2- ui-auth on the client. An error occurs with the CSRF-token is not sent to the server, I added the corresponding module to the AppModule,
but this did not help. Help solve the problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2018-04-13
@uaKorona

You need to debug))
1. Make sure that you received this token from the server: in the header or in cookies.
2. If received - then look for where it is not sent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question