Getting CORS To Work With Nancy
问题 I am trying to get all types of requests to work with Nancy and CORS. Currently I add a pipeline at the end of the request: pipelines.AfterRequest.AddItemToEndOfPipeline((ctx) => ctx.Response .WithHeader("Access-Control-Allow-Origin", "http://localhost:57515") .WithHeader("Access-Control-Allow-Methods", "POST, GET, DELETE, PUT, OPTIONS") .WithHeader("Access-Control-Allow-Headers", "Accept, Origin, Content-type") .WithHeader("Allow", "POST, GET, DELETE, PUT, OPTIONS")) The options request