intermediateSpring Security341 of 469
What is CORS?
Tests whether you know CORS is a browser-enforced security mechanism (not a server restriction) that blocks a page's JavaScript from reading cross-origin responses unless the server explicitly allows it via Access-Control-* headers -- it doesn't stop the request from being sent, only from being read.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response