I have corrected this issue by correcting the CORS setup. CORS on the API must allow the url and port of the flutter website.