How to send an HTTP 4xx-5xx response with CORS headers in an ASPNET.Core web app?
I have a standard ASP.NET Core 2 Web App acting as a REST/WebApi. For one of my endpoints I return an HTTP 400 when the user provides bad search/filter querystring arguments.