Accept CORS

This commit is contained in:
2021-07-04 14:48:46 +02:00
parent 2a2909a7aa
commit e4a430fb45

View File

@@ -26,7 +26,11 @@ export default defineComponent({
const { $axios } = useContext()
const loginWithGithub = () => {
return $axios.get('/auth/github').then((response) => {
return $axios.get('/auth/github',{
headers: {
'Access-Control-Allow-Origin': '*'
}
}).then((response) => {
console.log(response)
})
}