---
title: "Discussion on \"How to fix CORS error for your Flutter web app\" | Hashnode"
description: "Discussion on \"How to fix CORS error for your Flutter web app\". Hi there 👋 I am Aleksandar and I am building Writings. Simple tool to write, organize and share your content. Hope you enjoy this article.\n\nBuilding an app to help me build a better writing habit and organize what I write, I came to a problem that w..."
url: "https://hashnode.com/posts/how-to-fix-cors-error-for-your-flutter-web-app/6110ec85b79d6a1136684116"
---

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

Discussion

# [How to fix CORS error for your Flutter web app](https://itsbalal.hashnode.dev/how-to-fix-cors-error-for-your-flutter-web-app?utm_source=hashnode&utm_medium=feed)

Hi there 👋 I am Aleksandar and I am building Writings. Simple tool to write, organize and share your content. Hope you enjoy this article. Building an app to help me build a better writing habit and organize what I write, I came to a problem that w...

Aug 9, 2021 · 4 min read · itsbalal.hashnode.dev  
Updated Aug 22, 2022  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#error-handling](https://hashnode.com/tag/error-handling)

## Written by

[Aleksandar Balalovski](https://hashnode.com/@itsbalal)

@itsbalal

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

Software development mumbling millennial

Curious Builder ⚡️ Building Writings, a no-BS writing app, and growing it to the sky 🚀 I write about software development product building.

## Responses 2

Markdown supported · ⌘↵ to post

[Adrian Herrera](https://hashnode.com/@AmadeusHerrera)

[Feb 21, 2023](https://hashnode.com/posts/how-to-fix-cors-error-for-your-flutter-web-app/6110ec85b79d6a1136684116/comment/63f51b5c75350fc1ff69124b)

Esto no funciona en prod, solo en local, y solo en la compu en la que se realizó el proceso.

[Himanshu Khare](https://hashnode.com/@himanshu843)

[Feb 7, 2022](https://hashnode.com/posts/how-to-fix-cors-error-for-your-flutter-web-app/6110ec85b79d6a1136684116/comment/6200ccb2295d276006775ec7)

How to disable also in flutter deploy a web app not in localhost

[Aleksandar Balalovski](https://hashnode.com/@itsbalal)

[Feb 7, 2022](https://hashnode.com/posts/how-to-fix-cors-error-for-your-flutter-web-app/6110ec85b79d6a1136684116/comment/6200ccb2295d276006775ec7#reply-6200d82a295d276006776105)

You will need some form of a Backend to which you will direct your requests and take full control over the request headers. In my case I wrote a Node.js backend to solve the problem.

[Himanshu Khare](https://hashnode.com/@himanshu843)

[Feb 7, 2022](https://hashnode.com/posts/how-to-fix-cors-error-for-your-flutter-web-app/6110ec85b79d6a1136684116/comment/6200ccb2295d276006775ec7#reply-6200dd19295d2760067761be)

[Aleksandar Balalovski](https://hashnode.com/@itsbalal) but I did not know backend can u share ur code

[Himanshu Khare](https://hashnode.com/@himanshu843)

[Feb 7, 2022](https://hashnode.com/posts/how-to-fix-cors-error-for-your-flutter-web-app/6110ec85b79d6a1136684116/comment/6200ccb2295d276006775ec7#reply-6200dd36295d2760067761c2)

[Aleksandar Balalovski](https://hashnode.com/@itsbalal) but I did not know backend can u share ur code
