Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4069

Flutter web API Error "No 'Access-Control-Allow-Origin' header is present on the requested resource"

$
0
0

flutter web app fails to connect to my rest api , says

Access to XMLHttpRequest at'https://example.com:5050/api/Data/GetData' from origin'https://example.com' has been blocked by CORS policy: Responseto preflight request doesn't pass access control check: No'Access-Control-Allow-Origin' header is present on the requestedresource.

previously I had issue with app not retrieving data from my backend due to data sent over http, but now shows this

"No 'Access-Control-Allow-Origin' header is present".

Any Help will be highly appreciated


Viewing all articles
Browse latest Browse all 4069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>