0👍
Below code helped me you can try this format:
created() {
// POST request using axios with set headers
const article = { title: "Vue POST Request Example" };
const headers = {
'X-API-Key': 'randomKey123123'
};
axios.post(url, article, { headers })
.then(response => console.log(response.data)
);
}
- [Vuejs]-Vue ssr application styling breaks when upgrade to css-loader 4.0.0
- [Vuejs]-Display database table on v-calendar
Source:stackexchange.com