XMLHttpRequest cannot load http://MVCApi. The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'http://sharepoint' is therefore not allowed access.
When such error arise, make sure to comment the below web.config entry under <system.webServer>.
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*"/>
</customHeaders>
</httpProtocol>