Same-Origin Policy (SOP)

Difficulty: Intermediate

Question

What defines an 'Origin' in the Same-Origin Policy?

Answer

The combination of the **Protocol** (http/https), **Host** (domain), and **Port**.

Concepts covered

Browser Security, Origins