I did some research on the Internet and looked at a few questions about SOP and what abuse it mitigates, but most of the answers focus on preventing stolen credentials. That makes sense to me.
What doesn't make sense to me is why browsers, following SOP rules, block the response directly, and not block access to cookies and local storage.
In other words, if cookies and local storage do not exist, will there still be a need to prevent GET responses from being read? Presumably, this is already what happens to some extent with <img>
, <script>
and <iframe>
.
source share