Can someone tell me why im getting errors when i do this in the console
return await fetch('https://api.darflen.com/feed/render?page=1', {
method: 'GET',
...{
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*',
'Authorization': 'Bearer ' + localStorage.token
}
})
Comments
{"code":"fail","error":500,"message":"Can not generate HTML"}