[Question] How can I selectively enforce HTTPS on a health check endpoint #25374
Unanswered
Bo-Simmons
asked this question in
General
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've configured health checks using the middleware in an MVC application, but have been asked to enforce https on the health endpoint for security reasons. For separate reasons, I can't enforce it across the service as a whole, and so I was wondering if there was a mechanism to selectively do this to just the health endpoint. While it's possible to do this with a controller, but I can't seem to achieve it for the endpoint created by the middleware.
Is there any built-in way to achieve this? Could I create some sort of custom middleware as a wrapper to achieve it?
Beta Was this translation helpful? Give feedback.
All reactions