C# - CORS - no 'access-control-allow-origin' header

Hi, I have a dot.Net MVC C# framework 4.5 website and I’m getting the follow error message:

XMLHttpRequest cannot load http://www.ipefae.org.br/Account/VerificarUsuarioLogado. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://ipefae.gear.host’ is therefore not allowed access.

I’ve already changed my web.config

        <add name="Access-Control-Allow-Origin" value="*" />
        <add name="Access-Control-Allow-Headers" value="Content-Type, Accept" />

But is still not working.

What can I do? Anyone here have already faced this error?

Thank you all

Check out this article on how to enable CORS in a WebAPI app. https://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api