RandomUs1r
RandomUs1r

Reputation: 4190

NLog WebServiceTarget

I'm trying to use the webservicetarget to send an email, but can't figure out how to pass an authorization header with it. Is there any way to add a custom header (like x-api-key) to the NLog web service target?

Upvotes: 0

Views: 165

Answers (1)

Rolf Kristensen
Rolf Kristensen

Reputation: 19867

There is a GitHub PR that adds support for HTTP-headers (with PreAuthenticate):

https://github.com/NLog/NLog/pull/1912

Upvotes: 2

Related Questions