What is the purpose of the 'CORS' (Cross-Origin Resource Sharing) mechanism?
A. To allow a web page to request resources from a different domain
B. To encrypt cross-origin traffic
C. To authenticate cross-origin users
D. To block cross-origin requests
Answer: Option A
Solution (By JKSSB Mock Tests)
CORS is a mechanism that uses additional HTTP headers to tell browsers to give a web application running at one origin access to resources from a different origin.
Explanation:
A sitemap.xml file acts as an architectural guide for web crawlers, listing available site URLs so search engines can efficiently map out and discover pages.
No comments yet. Be the first to start the discussion!