---
title: "Discussion on \"The CORS Error That Was a Race Condition\" | Hashnode"
description: "Discussion on \"The CORS Error That Was a Race Condition\". The browser blamed CORS. The CORS config was fine. The real fault was two tabs refreshing the same token at the same moment."
url: "https://hashnode.com/posts/the-cors-error-that-was-a-race-condition/6a929d574b9f5949986f9c3c"
---

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

Discussion

# [The CORS Error That Was a Race Condition](https://blog.ashishkrjha.dev/the-cors-error-that-was-a-race-condition?utm_source=hashnode&utm_medium=feed)

The browser blamed CORS. The CORS config was fine. The real fault was two tabs refreshing the same token at the same moment.

Aug 29 · 16 min read · blog.ashishkrjha.dev  
Read the article

-   [#webdev](https://hashnode.com/tag/webdev)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#python-projects](https://hashnode.com/tag/python-projects)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Ashish Kr Jha](https://hashnode.com/@Ashish14411)

@Ashish14411

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
