Web Security · Junior · Question 40 of 75

fetch('https://api.other.com/data') fails with a CORS error. Where is it fixed?

Explanation

Only the resource owner can allow cross-origin reads. no-cors gives an opaque response that JavaScript can't read.

Further reading

Problem with a question

Web Security · Junior · question 40

Test yourself

Take the Web Security · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz