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
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.
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.
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.
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.