Axios not sending custom headers in request (possible CORS issue)
问题 I'm encountering a problem where axios doesn't seem to send custom headers with my requests. I'm using it like this: axios({ method: 'get', url: 'www.my-url.com', headers: { 'Custom-Header': 'my-custom-value' } }) However, looking at the actual request that is sent to the server, the custom header doesn't seem to be anywhere. REQUEST HEADERS: Accept: */* Accept-Encoding: gzip, deflate, br Accept-Language: es-ES,es;q=0.9 Access-Control-Request-Headers: custom-header Access-Control-Request