---
title: "Discussion on \"Debugging Feb #1: How I Overcame a CORS Error when posting to Dev.to API.\" | Hashnode"
description: "Discussion on \"Debugging Feb #1: How I Overcame a CORS Error when posting to Dev.to API.\". Introduction: 🙋‍♀️\nAs a developer, debugging is an inevitable part of the development process. Recently, while working on my project Easy Blog, I encountered a CORS error  when attempting to post content to the Dev.to API. In this post, I'll share m..."
url: "https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe"
---

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

Discussion

# [Debugging Feb #1: How I Overcame a CORS Error when posting to Dev.to API.](https://blog.rajeshkhadka.info.np/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api?utm_source=hashnode&utm_medium=feed)

Introduction: 🙋‍♀️ As a developer, debugging is an inevitable part of the development process. Recently, while working on my project Easy Blog, I encountered a CORS error when attempting to post content to the Dev.to API. In this post, I'll share m...

Feb 24, 2023 · 3 min read · blog.rajeshkhadka.info.np  
Updated Feb 1, 2024  
Read the article

-   [#debuggingfeb](https://hashnode.com/tag/debuggingfeb)
-   [#cors](https://hashnode.com/tag/cors)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

@rajeshkhadka · Nepal

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

Software Developer 👩‍💻 | Technical Writer 📝 | Student 🎓

Software Developer 👩‍💻 | Technical Writer 📝 | Student 🎓

## Responses 5

Markdown supported · ⌘↵ to post

[Saroj Regmi](https://hashnode.com/@saroj-regmi)

[Mar 10, 2023](https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe/comment/640ad6bde3de6419e7484def)

Cors error is one of the worst error that one can get.

[Victoria Lo](https://hashnode.com/@victoria)

[Mar 2, 2023](https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe/comment/640072d24afe53670a9e2587)

Nice one! 😊

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

[Mar 4, 2023](https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe/comment/640072d24afe53670a9e2587#reply-640366b46cc7b7a22094c9b9)

Hope you liked it ! 😃

[Shashank](https://hashnode.com/@coderatwork)

[Feb 28, 2023](https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe/comment/63fe33cb14fb322d0b6d92bb)

Good info 👍

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

[Mar 4, 2023](https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe/comment/63fe33cb14fb322d0b6d92bb#reply-640366a36cc7b7a22094c9b2)

Thank you !

[Aryan Srivastava](https://hashnode.com/@AryanSri)

[Feb 25, 2023](https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe/comment/63f9ed15478545fd8f77ca82)

I had experienced something similar while using an API and it sure was annoying.

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

[Feb 25, 2023](https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe/comment/63f9ed15478545fd8f77ca82#reply-63fa47034601ef02c201e868)

yes ! it was sure annoying.😅

[Utsav bhattarai](https://hashnode.com/@utsavbhattarai)

[Feb 25, 2023](https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe/comment/63f99ef6478545fd8f77be7a)

Informative!

[Rajesh Khadka](https://hashnode.com/@rajeshkhadka)

[Feb 25, 2023](https://hashnode.com/posts/debugging-feb-1-how-i-overcame-a-cors-error-when-posting-to-devto-api/63f90ed70859dde9a7e43bbe/comment/63f99ef6478545fd8f77be7a#reply-63f99f34478545fd8f77be89)

thanks !!
