Я не могу использовать заголовки с моим топором ios запрос
Это работает
Приложение. vue
axios
.get(Config.BASEURL + 'pref/footer', { })
.then(response => (this.footer = response.data))
Это не
Приложение. vue
axios
.get(Config.BASEURL + 'pref/footer', { crossDomain: true, headers: {"Authorization":1}})
.then(response => (this.footer = response.data))
Моя конечная точка выглядит следующим образом
application.cf c
...
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" },
...
Я получаю сообщение об ошибке, которое выглядит следующим образом:
В App.vue
, я не могу понять, что добавить.