I just wanted to know how requested response looks like before jsonifying it.
then i got:
code i wrote:
async function a(){
fetch('https://jsonplaceholder.typicode.com/todos/')
.then(response =>{
console.log(response);
return response.json()
})
.then(json => console.log(json))
}
a();
- want to know why it causes cors error like this