React component has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
问题 I am calling the Web API from the my react component using fetch when I used to run it as one application, there was no problem, but when I am running the application react separate from API, I am getting the CORS error, my fetch call is as below, componentDidMount() { console.log(clientConfiguration) fetch(clientConfiguration['communitiesApi.local']) .then((response) => { return response.json(); }) .then(data => { console.log(data); let communitiesFromApi = data.map(community => { return {