Wednesday, May 22, 2019

[Help] Adding custom header to .netcore using swashbuckle

Good day all, first time on this sub, but I need some help.

I haven't used C# in the past 3 years but have been placed on a project that uses exclusively C#.

The problem I'm facing is with the swashbuckle plugin, I have already added and apiKey security definition, but I additionally have to add a custom header to all requests that our backend uses to identify if the call was made from mobile or web. The header is named "WebVersion".

I've been going through the documentation and haven't had much success, found loads of solutions for none .netcore though.

If anyone could point me in the right direction, that would be amazing

[Help] Adding custom header to .netcore using swashbuckle Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team