---
title: "Discussion on \"Solving CORS errors\" | Hashnode"
description: "Discussion on \"Solving CORS errors\". When I was trying to call an API in my server from the browser, it sometimes got an error “something has been blocked by CORS policy..” on the browser"
url: "https://hashnode.com/posts/solving-cors-errors/636a8e19d026415d72d49790"
---

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

Discussion

# [Solving CORS errors](https://hiept.com/solving-cors-errors?utm_source=hashnode&utm_medium=feed)

When I was trying to call an API in my server from the browser, it sometimes got an error “something has been blocked by CORS policy..” on the browser

Nov 8, 2022 · 5 min read · hiept.com  
Read the article

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

## Written by

[Hiep Tran](https://hashnode.com/@tranhiepqna)

@tranhiepqna

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

Software Developer

I am a full-stack developer from Vietnam 🇻🇳.

## Responses 2

Markdown supported · ⌘↵ to post

[Nguyễn Tấn Sang](https://hashnode.com/@sang49)

[Nov 9, 2022](https://hashnode.com/posts/solving-cors-errors/636a8e19d026415d72d49790/comment/636b655d4a0ea2f5b5b6fe8f)

great effort for a new topic, hope good things for you

[Javier Suarez](https://hashnode.com/@javkad)

[Nov 9, 2022](https://hashnode.com/posts/solving-cors-errors/636a8e19d026415d72d49790/comment/636b592c832bb6eb4df9d8ac)

Thanks for the detailed post and several solutions for each case! Bookmarking this. I've had this error several times in the past when building full stack apps from scratch and it's frustrating, since there are no much clear solutions in around the web.
