I am unable to use headers with my axios request
This works
App.vue
axios
.get(Config.BASEURL + 'pref/footer', { })
.then(response => (this.footer = response.data))
This does not
App.vue
axios
.get(Config.BASEURL + 'pref/footer', { crossDomain: true, headers: {"Authorization":1}})
.then(response => (this.footer = response.data))
My end point looks like this
application.cfc
...
variables.framework.routes = [
// Rest
{ "$GET/rest/carousel" = "rest/carousel" },
{ "$PUT/rest/contactus" = "rest/contactus" },
{ "$POST/rest/login" = "restLogin/loginPOST" },
{ "$GET/rest/message" = "rest/message" },
{ "$GET/rest/page/:id" = "rest/page/slug/:id" },
{ "$GET/rest/page" = "rest/page" },
{ "$GET/rest/pref/:id" = "rest/pref/slug/:id" },
...
I get an error message that looks like this:
In the App.vue
, I can't figure out what to add.