2025-09-25 14:37:10 +08:00
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2025-10-09 16:26:44 +08:00
|
|
|
|
namespace LM.Core.Middleware
|
2025-09-25 14:37:10 +08:00
|
|
|
|
{
|
|
|
|
|
|
public class HttpRequestMiddleware
|
|
|
|
|
|
{
|
|
|
|
|
|
public static Func<RequestDelegate, RequestDelegate> Context
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return next => async context =>
|
|
|
|
|
|
{
|
|
|
|
|
|
//动态标识刷新token(2021.05.01)
|
|
|
|
|
|
context.Response.Headers["Access-Control-Expose-Headers"] = "vol_exp";
|
|
|
|
|
|
await next(context);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|