Same Origin Policy in Selenium

Profile picture for user arilio666

Any code loaded within a browser can only be operated within that site's domain. To prevent this same policy origin from being introduced in selenium, it also ensures that any content from a particular site is not accessible by a script from the other place.

The proxy injection method is used to avoid this in which the selenium server acts as client configured HTTP proxy, which acts as the middleman between the browser and application masks AUT under a fictional URL.

Therefore different domain pages cannot access each other, for example. Google cannot access pages from various sites such as yahoo or even programsbuzz. This is the concept of the exact policy origin.