DEV Community

Discussion on: CORS in ASP.Net Web API

Collapse
 
ikev profile image
Kevin Guisbert

Thanks for sharing. I like the configuration in the web.config but I couldn't make it works when I sent content-type application/json or when I sent authorization header. For POST plain text works well. In the other hand using attributes for CORS works really well with application/json and authorization header and it is not necessary configure preflight.