0 votes
in JavaScript by
What is same-origin policy in Javascript?

1 Answer

0 votes
by

The same-origin policy is a policy that prevents JavaScript from making requests across domain boundaries. An origin is defined as a combination of URI scheme, hostname, and port number. If you enable this policy then it prevents a malicious script on one page from obtaining access to sensitive data on another web page using Document Object Model(DOM).

Related questions

0 votes
asked Oct 8, 2023 in JavaScript by JackTerrance
0 votes
asked Feb 20 in JavaScript by DavidAnderson
...