'How to secure ElmahCore Errprs Dashboard page on ASP.NET CORE API end

I have ASP.NET Core API that is being consumed by an Angular app. Now I have implemented ElmahCore error logging API that shows all errors of Backend API on the URL:

www.myAPI.com/elmah

This URL is currently public so what are my options to secure it so that only logged in user could access it. Currently angular app has implementation of JWT token to access some secure api endpoints. But since its not API end point, but a web page provided by elmah on the API, I dont know how to secure it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source