public void ProcessRequest(HttpContext context) { string requestedFilePath = context.Request.PhysicalPath; CorsEnabler ce = new CorsEnabler(); ce.AddCorsHeaders(context); context.Response.ContentType = $"application/font-{Path.GetExtension(requestedFilePath).ToLower()}"; context.Response.WriteFile(requestedFilePath); }
public void Process(HttpRequestArgs args) { CorsEnabler ce = new CorsEnabler(); ce.AddCorsHeaders(args.Context); }