I need to include a header with a refresh token in an ajax call to the YouTube api. I am trying to send a delete request, to delete a movie I have on my account. This is my ajax
You can use beforeSend method and request.setRequestHeader. Take a look at the official documentation here.
beforeSend
request.setRequestHeader
P.S. should I post it as a comment?