What is the purpose of the 'same-origin policy' in web browsers?
A. To prevent scripts from accessing data from different origins
B. To ensure cookies are only sent to the same site
C. To block pop-ups
D. To enforce HTTPS usage
Answer: Option A
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:
URLs must only contain characters from a specific safe ASCII set. Characters outside this set are converted into a '%' followed by a hexadecimal code sequence (e.g., spaces become %20).
Explanation:
Pharming is a cyberattack intended to redirect a website's traffic to another fake site by spoofing DNS records or host configuration settings.
Which of the following browser utilities allows software developers to directly inspect a webpage's DOM structure, debug JavaScript errors, and trace network resource load timelines natively?
Explanation:
Built-in Developer Tools (DevTools) in modern browsers provide deep access to inspect elements, analyze network payloads, check console logs, and debug scripts.
No comments yet. Be the first to start the discussion!