dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
212 stars 75 forks source link

Debugging flutter project in IDX throws an error "blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." #2520

Closed SathishLondon closed 1 week ago

SathishLondon commented 2 weeks ago

I am using idx UI (idx.google.com) editor for developing flutter app. Using the default flutter app template, I created a new flutter project. When I tried to run the project in debug mode, I am getting an error.

I tried the suggestions in stackoverflow page but the recommendations were of no use. https://stackoverflow.com/questions/46522749/how-to-solve-redirect-has-been-blocked-by-cors-policy-no-access-control-allow

Access to manifest at '<URL #1>' (redi rected from '<URL #2>') from origin '<URL #3>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on therequested resource. Screenshot 2024-11-07 163200

bkonyi commented 1 week ago

I'm not totally familiar with IDX, but as far as I know we don't support debugging Flutter Web applications using IDX as it needs to support connecting to DWDS using SSE over HTTPS, which isn't supported.