Control-Allow-Headers in preflight response

Hi, I am using AXIOS to do a post request.
I receive this error Access to XMLHttpRequest at ‘’ from origin ‘pyron.test’ has been blocked by CORS policy: Request header field x-csrf-token is not allowed by Access-

Control-Allow-Headers in preflight response.
Error: Network Error
at createError (app.js:8452)
at XMLHttpRequest.handleError (app.js:7995)

Here is my code

In your code you don’t have a c-csrf-token Header.
My guess is that AXIOS intercepts your outgoing requests and adds this Header somehow.
Maybe you have to dig deeper into how axios handles the request.