Fetch request from own server
try
{
const response = await fetch('.../ping',
{
method: "GET",
headers: {
"Content-Type": "application/json",
},
});
if (!response.ok)
throw new Error('Fetch failed');
console.log(response.ok);
console.log(response.status)
}
catch (error)
{
console.error('Error:', error);
} try
{
const response = await fetch('.../ping',
{
method: "GET",
headers: {
"Content-Type": "application/json",
},
});
if (!response.ok)
throw new Error('Fetch failed');
console.log(response.ok);
console.log(response.status)
}
catch (error)
{
console.error('Error:', error);
}why when i make a get request to my own deno deploy server it fails?
