This commit is contained in:
2021-07-20 22:27:12 +02:00
parent eec3677f48
commit 384ae25439
8 changed files with 127 additions and 31 deletions

View File

@@ -37,7 +37,12 @@ export default defineComponent({
await $axios.get('guestbook', {
headers: {
'Authorization': `Bearer ${process.env.API_TOKEN}`
}
},
proxy: {
protocol: 'https',
host: 'https://api.arthurdanjou.fr',
port: 80,
},
})
.then(response => {
guestbook_messages.value = response.data.guestbook_messages

View File

@@ -67,8 +67,6 @@ export default defineComponent({
$axios.get('/subscribers', {
headers: {
'Authorization': `Bearer ${process.env.API_TOKEN}`,
'Access-Control-Allow-Origin': '*',
'Content-Type': 'application/json'
}
}).then((response) => {
if (response.status === 200) {