Control-Allow-Headers in preflight response


#1

Hi, I am using AXIOS to do a post request.
I receive this error Access to XMLHttpRequest at ‘https://api.openrouteservice.org/v2/directions/driving-car/geojson’ 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 https://pastebin.com/Y7DUWxeY