---
title: "Discussion on \"Deep dive in CORS: History, how it works, and best practices\" | Hashnode"
description: "Discussion on \"Deep dive in CORS: History, how it works, and best practices\". Learn the evolution of same-origin policy and CORS, understand CORS and the cross-origin access types in depth, and learn (some) best practices."
url: "https://hashnode.com/posts/deep-dive-in-cors-history-how-it-works-and-best-practices/60ce5878c6377540dd23898c"
---

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

Discussion

# [Deep dive in CORS: History, how it works, and best practices](https://ilija.hashnode.dev/deep-dive-in-cors-history-how-it-works-and-best-practices?utm_source=hashnode&utm_medium=feed)

Learn the evolution of same-origin policy and CORS, understand CORS and the cross-origin access types in depth, and learn (some) best practices.

Jun 19, 2021 · 19 min read · ilija.hashnode.dev  
Read the article

-   [#cors](https://hashnode.com/tag/cors)
-   [#http](https://hashnode.com/tag/http)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#security](https://hashnode.com/tag/security)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Ilija Eftimov](https://hashnode.com/@ilija)

@ilija · Amsterdam, The Netherlands

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

Software Engineer | Wannabe Author

## Responses 4

Markdown supported · ⌘↵ to post

[Ville Pakarinen](https://hashnode.com/@pakavi)

[Oct 20, 2021](https://hashnode.com/posts/deep-dive-in-cors-history-how-it-works-and-best-practices/60ce5878c6377540dd23898c/comment/616fce30d78c655a231278c7)

Good and detailed article about cors :) recommended reading.

[Ilija Eftimov](https://hashnode.com/@ilija)

[Oct 22, 2021](https://hashnode.com/posts/deep-dive-in-cors-history-how-it-works-and-best-practices/60ce5878c6377540dd23898c/comment/616fce30d78c655a231278c7#reply-61729b150c5e175a1c614764)

Thank you Ville!

[Andrew Baisden](https://hashnode.com/@andrewbaisden)

[Jun 24, 2021](https://hashnode.com/posts/deep-dive-in-cors-history-how-it-works-and-best-practices/60ce5878c6377540dd23898c/comment/60d4872b5ed303057ace9637)

Good guide wish I knew all this years ago when I first started to use CORS.

[Sandeep Panda](https://hashnode.com/@sandeep)

[Jun 22, 2021](https://hashnode.com/posts/deep-dive-in-cors-history-how-it-works-and-best-practices/60ce5878c6377540dd23898c/comment/60d225bcd81d4d6e9919b09a)

Such an extensive guide -- nicely done!! 🙌

[Ilija Eftimov](https://hashnode.com/@ilija)

[Jun 22, 2021](https://hashnode.com/posts/deep-dive-in-cors-history-how-it-works-and-best-practices/60ce5878c6377540dd23898c/comment/60d225bcd81d4d6e9919b09a#reply-60d23e6cd81d4d6e9919b2ce)

Thanks a bunch, much appreciated! 🙇

[Wei Lun](https://hashnode.com/@weilun)

[Jun 21, 2021](https://hashnode.com/posts/deep-dive-in-cors-history-how-it-works-and-best-practices/60ce5878c6377540dd23898c/comment/60cfe83507db7a50332c0153)

Very detailed write up 👍
