我想添加回复标题“Access-Token”>名称“我的自定义值”>值
然后我收到了这个错误; system.platformnotsupportedexception
你为什么这么想?
public abstract class BaseController:Controller
{
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
base.Response.AppendHeader("Access-Token", AccessTokenValidator.EncryptToken(LoggedInUserId));
base.OnActionExecuting(filterContext);
}
}