How to add headers to POST request via RestClient?
-
Hello everyone, I make a POST request via RestClient, I try to add headers "Content-Type": "multipart / form-data", but for some reason it does not work, the request itself:
const res = await Client.post ('/ url /', payload, {
"Content-Type": "multipart / form-data"
})JavaScript Anonymous, Apr 27, 2019
0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!