Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSRF-token not send to server on Django #143

Open
VadimKhismatov opened this issue Apr 4, 2018 · 1 comment
Open

CSRF-token not send to server on Django #143

VadimKhismatov opened this issue Apr 4, 2018 · 1 comment

Comments

@VadimKhismatov
Copy link

Hello, i writing an application with Angular 5 and Django on server, we use this lib for Linkedin authentication and when send a request to server we need to send a CSRF-token, a added HttpClientModule, HttpClientXsrfModule to AppModule

HttpClientXsrfModule.withOptions({ cookieName: 'My-Xsrf-Cookie', headerName: 'My-Xsrf-Header', })
also added options to HttpClientXsrfModule, but i still have an error. In some examples i saw that was added withCredentials code line, but all request make this library, is there is something more that a should do ?

@ronzeidman
Copy link
Owner

Why replace the native HttpClientModule? Can't you implement the csrf token addition with an interceptor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants