Skip to content Skip to sidebar Skip to footer

How Do I Convert A Requested JSON Message To Usable Data?

I have a flask server running that provides me with a JSON message when I manually visit 127.0.0.1:5000/data/get_data. CORS is disabled in this flask server and in my fetch-request

Solution 1:

fetch('http://127.0.0.1:5000/data/get_data', {
    mode: 'no-cors'
})
.then(response => response.json())
.then(json => console.log(json));

Post a Comment for "How Do I Convert A Requested JSON Message To Usable Data?"