---
title: "Discussion on \"Same Origin Policy and CORS\" | Hashnode"
description: "Discussion on \"Same Origin Policy and CORS\". What is Origin\nThe protocol/domain/port tuple of a URL is called the origin\nlet url = 'http://store.company.com/dir/page.html'\n//http://store.company.com is origin\n\nWhen the two Origins are the same\nWhen the protocol/domain/port tuple of the URL is t..."
url: "https://hashnode.com/posts/same-origin-policy-and-cors/63bc117cec1a75db08df431f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Same Origin Policy and CORS](https://shailstar.hashnode.dev/same-origin-policy-and-cors?utm_source=hashnode&utm_medium=feed)

What is Origin The protocol/domain/port tuple of a URL is called the origin let url = 'http://store.company.com/dir/page.html' //http://store.company.com is origin When the two Origins are the same When the protocol/domain/port tuple of the URL is t...

Jan 9, 2023 · 4 min read · shailstar.hashnode.dev  
Read the article

-   [#cors](https://hashnode.com/tag/cors)
-   [#same-origin-policy](https://hashnode.com/tag/same-origin-policy)

## Written by

[Shailendra Singh](https://hashnode.com/@ShailStar)

@ShailStar

  
[View profile](https://hashnode.com/@ShailStar)

Frontend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
