This is my Vue Component
<template>
<v-container>
<div id="app">
{{ posts }}
<v-divider></v-divider>
{{status}}
</div>
</v-container>
</template>
<script>
import axios from "axios";
export default {
el: '#app',
data () {
return {
status:null,
posts: []
}
},
mounted () {
axios
.get('http://localhost:8080/uebungen')
.then(response =>{
this.posts=response.data
}
)
}
}
</script>
I want to make a get request on my Spring Programm, I can work with my backend perfectly, i can send a get request from python or postman without any problems, but if i send one with Vue axios i got this weird error in my browser.
I am pretty new to Vue, I hope i haven't messed up with some basics.
I wont get an error in vue or in my spring programm, in vue it just won't show anything