1 year ago

Third party API headers

Posted 1 year ago by Conixs

Hello everyone, I'm using an API that describes that all API requests submitted must have the below headers:

“Content-Type”: “application/json”
“Authorization”, “Basic”, “Username:Password”
“X-Requested-With”: “XMLHttpRequest”,

Can I use a middleware to add all the headers?

Please sign in or create an account to participate in this conversation.