-
Notifications
You must be signed in to change notification settings - Fork 8
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
auto CSRF function get confused by body #213
Comments
Hi @p-mathias, |
fixed the issue, |
No, please leave it open. I still need to fix the underlying issue. |
Hi @p-mathias, with the newest version of the fetch client you can remove the format parameter. |
with the fixed version |
Last week we got to the state the auto csrf function is kicking in,
when csrf is needed by post request.
i notice that the post request doesn't get send since then,
while checking today what could be the issue,
i notice an error in the console:
This error meesage sense and not sense in the same time,
the return of the get call (where csrf token is collected) a response from the server,
which is in xml.
But two things make this thing, i guess to an issue/bug:
Please had in mind this i an oDataV2 interface
place where the error hapen:
https://github.com/odata2ts/http-client/blob/ed6b01821c2dc161f05144e3b4d8f8d899f954ae/packages/fetch/src/FetchClient.ts#L98
The text was updated successfully, but these errors were encountered: