Tag Info

New answers tagged

0

TL:DR Same Origin Policy mainly prevents retrieval of information, not sending. Same Origin Policy stops malicious.com from using cookies for bank.com to retrieve sensitive information from bank.com. The key thing to note is that the Same Origin Policy tries to prevent a script from malicious.com from every seeing any data from bank.com. Once a script from ...


4

Can A.js call a function from B.js? No, the javascript need to be defined on your current page Can A.js modify the DOM of page B.html? Yes, but you need a reference AND have the same origin. If page A have a reference to page B, it is possible for A to modify the DOM in B. Page A can have a reference to page B if page A opened page B and saved ...


4

I do not think that this violates the Same-Origin Policy, because the child tab is not able to access the data in the parent tab or modify it's content. This was probable designed like this in order to allow the web developers to offer a better user experience when dealing with multiple windows. On the other side, this is definitely something a web ...



Top 50 recent answers are included