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