在跨域访问的时候 会报这样的错误 看翻译 Audience 错误 不知道怎么配置
Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: '[PII is hidden]'. Did not match: validationParameters.ValidAudience: '[PII is hidden]' or validationParameters.ValidAudiences: '[PII is hidden]'.
配置如下
"JwtSettings": {
"Aud": "http://localhost:4200",
"Authority": "https://localhost",
"DescKey": "TThvj8G5jb6GcTFZmxVwh5Cj",
"Iss": "https://localhost",
"Secret": "Y2F0Y2hlciUyMHdvbmclMjBsb3ZlJTIwLm5ldA=="
},
你这个是咋解决的?
分享下怎么解决的