mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-20 15:01:47 +01:00
Accept CORS
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user