我正在使用一个令牌,当包含在帖子请求的表单数据主体中时,该令牌在邮递员中起作用。如何在策略中包含令牌?
将令牌附加到入站标记中的请求正文解决了问题。
string temp = context.Request.Body.As<string>(preserveContent: true);
temp = temp + "&token={{MyTokenName}}";
return temp;