0👍
I don’t think you need to instantiate a Headers with the fetch library, this should be sufficient.
const myHeaders = {
"content-type": "application/x-www-form-urlencoded",
"headers": "Access-Control-Allow-Origin', '*",
"Access-Control-Allow-Headers": "Origin, X-Requested-With",
"Authorization ": "Bearer, mytoken"
};
- [Vuejs]-Change group of characters in a String
- [Vuejs]-How to properly create a popup component in Vue 3
Source:stackexchange.com