Explaining issue: response to preflight request doesn't pass access control checkYou are developing a nodejs web application having some UI and backend APIs…