I want to use an authorization header that looks like so -
Authorization: APIToken <API_KEY>
I'd like to use the FromHeader parameter in my C# controller so that I can inject this value when testing inside Swagger, but when I try to come the FromHeader parameter with the Authorization header, my API controller fails. How can I use FromHeader parameter with the Authorization Header in my API Controller?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…