MDN wants to learn about developers like you:

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

Web content's origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.

Some operations are restricted to same-origin content, and this restriction can be lifted using CORS.

Examples of same origin
same origin because same scheme (http) and host (
same origin because a server delivers HTTP content through port 80 by default

Examples of different origin
different schemes
different hosts
different ports

Learn more

​See Same-origin policy for more information.


 このページの貢献者: Sheppy, teoli, Andrew_Pfeiffer, wbamberg, Biraj, Jeremie, rebloor
 最終更新者: Sheppy,