Post Request With Data And Headers

[Solved] Post Request With Data And Headers | Vb - Code Explorer | yomemimo.com
Question : post request with headers

Answered by : inquisitive-iguana-l7gzcwbw7ohk

const createPostRequest = async () => {	try{	const { data } = await axios.post(url, body_data, { headers: { 'Authorization': `Basic ${token}` },	}) console.log(data)	} catch (error) {	console.log(error)	}
}
createPostRequest();

Source : | Last Update : Wed, 22 Jun 22

Answers related to post request with data and headers

Code Explorer Popular Question For Vb