---
title: "Discussion on \"Fixed CORS error with just one line of code\" | Hashnode"
description: "Discussion on \"Fixed CORS error with just one line of code\". The CORS origin must match the domain or an allowed domain to access server data."
url: "https://hashnode.com/posts/fixed-cors-error-with-just-one-line-of-code/6572eda2e8b4ef95fef601e3"
---

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

Discussion

# [Fixed CORS error with just one line of code](https://ashrafchowdury09.hashnode.dev/fixed-cors-error-with-just-one-line-of-code?utm_source=hashnode&utm_medium=feed)

The CORS origin must match the domain or an allowed domain to access server data.

Dec 8, 2023 · 3 min read · ashrafchowdury09.hashnode.dev  
Read the article

-   [#mern](https://hashnode.com/tag/mern)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#express](https://hashnode.com/tag/express)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[Ashraf Chowdury](https://hashnode.com/@ashrafchowdury)

@ashrafchowdury · Remote

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

Front-end developer & Open-source contributor

I'm Achraf Chowdury, a front-end developer with a passion for building interfaces. While my background may not be traditional in this field, I believe that experience can add value to the art of front-end development. During my time in front-end development, I honed my skills in Javascript, Typescript, ReactJs, NextJs, Tailwind, NodeJs, Firebase, Appwrite, Cypress, Git &amp; Github, and Figma. These skills have proven my valuable transition to front-end development, as they have allowed me to create multiple projects and participate in hackathons. Additionally, my experience working with coding has taught me the importance of problem-solving and teamwork which I apply when contributing to the open-source. I have been dedicated to pursuing a career in front-end development and am excited to bring my diverse background and experiences to the table.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
