It seems the whole axios module configuration isn't recognized:
axios: { baseURL: 'https://127.0.0.1:9443', headers: { 'Access-Control-Allow-Origin': '*', }, proxyHeaders: true, proxy: true }
And request is sent to localhost:3005 instead with headers:
Accept application/json, text/plain, */* Accept-Encoding gzip, deflate Accept-Language en-US,en;q=0.5 Connection keep-alive Cookie co_SId=76771689452D3D85F5940E3β¦local; auth.redirect=%2Fquery DNT 1 Host localhost:3005 Referer http://localhost:3005/login User-Agent Mozilla/5.0 (X11; Ubuntu; Linuβ¦) Gecko/20100101 Firefox/69.0
Code is simply:
import { Component, Prop, Vue } from "vue-property-decorator"; @Component export default class Login extends Vue { private login(): void { console.log("bla") this.$axios .$get("/user/authorize", {}) .then((res: any) => { console.log(res); }); } }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It seems the whole axios module configuration isn't recognized:
And request is sent to localhost:3005 instead with headers:
Code is simply: