Computer Science · Web Security & Network Security
Consider the following statements regarding the Same-Origin Policy (SOP) and Cross-Origin Resource Sharing (CORS): I. The origin is defined as the combination of scheme, host, and port. II. CORS is a mechanism that completely removes the SOP restriction for cross-origin requests. III. CORS allows specific cross-origin requests only when the server explicitly permits them via response headers. IV. The HttpOnly cookie attribute is directly part of the SOP enforcement mechanism. Which of the above statements are correct?
- 1I, III, and IV only
- 2II and IV only
- 3I, II, and III only
- 4I and III only✓
Correct answer
I and III only
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Web Security & Network Security?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Web Security & Network Security