Beginner Web & Software Development
Q25 / 100

What is CORS (Cross-Origin Resource Sharing)?

Correct! Well done.

Incorrect.

The correct answer is B) A browser security mechanism controlling which origins can access resources on a server, using HTTP headers to allow/deny cross-origin requests

B

Correct Answer

A browser security mechanism controlling which origins can access resources on a server, using HTTP headers to allow/deny cross-origin requests

Explanation

Same-origin policy blocks cross-origin AJAX by default. CORS headers (Access-Control-Allow-Origin) allow the server to whitelist origins. Preflight OPTIONS request checks permissions for non-simple requests.

Progress
25/100