---
title: "Discussion on \"Your API Works in cURL. Why Does the Browser Reject It?\" | Hashnode"
description: "Discussion on \"Your API Works in cURL. Why Does the Browser Reject It?\". The API returns JSON in your terminal. Your frontend gets a network error. Before changing the..."
url: "https://hashnode.com/posts/curl-works-browser-cors-debugging/6ac9fdc7cf0296b8c9d90d52"
---

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

Discussion

# [Your API Works in cURL. Why Does the Browser Reject It?](https://blogs.powerduck.com/curl-works-browser-cors-debugging?utm_source=hashnode&utm_medium=feed)

The API returns JSON in your terminal. Your frontend gets a network error. Before changing the...

Oct 9 · 3 min read · blogs.powerduck.com  
Updated Oct 15  
Read the article

-   [#api](https://hashnode.com/tag/api)
-   [#debugging](https://hashnode.com/tag/debugging)
-   [#http](https://hashnode.com/tag/http)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
