What is the purpose of the 'same-origin policy' in web browsers?
A. To ensure cookies are only sent to the same site
B. To prevent scripts from accessing data from different origins
C. To enforce HTTPS usage
D. To block pop-ups
Answer: Option B
Solution (By JKSSB Mock Tests)
The same-origin policy restricts how documents or scripts loaded from one origin can interact with resources from another origin, protecting against attacks like CSRF and data theft.
Explanation:
Root name servers are the first step in resolving human-readable domain names, directing inquiries to the appropriate Top-Level Domain (TLD) servers (like those for .com or .org).
Which of the following refers to a specific web software asset used to provide localized data charts, real-time stock prices, or news items directly embedded into a sidebar workspace?
Explanation:
A web widget is a small, portable application snippet embedded within a web page to display real-time information or specific dynamic tools.
No comments yet. Be the first to start the discussion!