What is the purpose of the 'CORS' (Cross-Origin Resource Sharing) mechanism? MCQ with Answer and Explanation

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.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1
Which protocol adds a layer of security to HTTP by using encryption?
A. FTP
B. Telnet
C. HTTPS
D. SNMP

Correct Answer: Option C


Explanation:
HTTPS (HTTP Secure) is an extension of HTTP that uses SSL/TLS protocols to encrypt communication, providing secure data transmission.

This question belongs to: Computer Internet and Web Technologies
Question #2
What status code is returned by a web server to indicate a '301' redirection?
A. Unauthorized Access
B. Request Timeout
C. Bad Gateway
D. Moved Permanently

Correct Answer: Option D


Explanation:
A 301 status code signifies a permanent redirection, indicating that the requested resource has been assigned a new permanent URI.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the purpose of a 'Sitemap' (typically packaged as sitemap.xml) uploaded onto a website's root domain space?
A. To store backup email attachments
B. To explicitly detail the architectural directory list of URLs to assist search engine crawlers in indexing the site thoroughly
C. To encrypt user password data structures safely
D. To display a geographic satellite view map of the server facility layout

Correct Answer: Option B


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.

This question belongs to: Computer Internet and Web Technologies