Your comments

I tried it with fetch rather than axios and it worked

I am trying to use the Jewish calendar REST API in a React app

https://www.hebcal.com/hebcal/?v=1&cfg=json&yt=H&D=off&maj=on&min=off&mod=off&nx=on&start=2022-08-01&end=2023-01-14&month=x&ss=on&mf=off&c=off&geo=zip&zip=02135&M=on&s=on&lg=a&leyning=off

However, I get this error:

Request header field x-csrf-token is not allowed by Access-Control-Allow-Headers in preflight response.