Reputation: 4190
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
Reputation: 19867
There is a GitHub PR that adds support for HTTP-headers (with PreAuthenticate):
https://github.com/NLog/NLog/pull/1912
Upvotes: 2