Popular Posts

Saturday, October 21, 2017

ajax - How to support HTTP OPTIONS verb in ASP.NET MVC/WebAPI application - Stack Overflow

ajax - How to support HTTP OPTIONS verb in ASP.NET MVC/WebAPI application - Stack Overflow: "public class AllowOptionsHandler : DelegatingHandler
{
protected override async Task SendAsync(
HttpRequestMessage request, CancellationToken cancellationToken)
{
var response = await base.SendAsync(request, cancellationToken);

if (request.Method == HttpMethod.Options



Enable cors for Angular 4 otherwise when adding new record it will fail

No comments:

Post a Comment