我想添加响应头“访问令牌”>名称“我的自定义值”>值
然后我收到此错误;system.platformnotsupportedexception
为什么你认为?
public abstract class BaseController:Controller
{
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
base.Response.AppendHeader("Access-Token", AccessTokenValidator.EncryptToken(LoggedInUserId));
base.OnActionExecuting(filterContext);
}
}