using Microsoft.AspNetCore.Http;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace WIDESEAWCS_Core.Middlewares
|
{
|
public class HttpRequestMiddleware
|
{
|
private readonly RequestDelegate _next;
|
|
public HttpRequestMiddleware(RequestDelegate next)
|
{
|
_next = next;
|
}
|
|
public async Task InvokeAsync(HttpContext context)
|
{
|
context.Response.Headers.Add("Access-Control-Expose-Headers", "wideseawcs_exp");
|
await _next(context);
|
}
|
}
|
}
|