A. First to provide better service to the client on UI (priority) and second to protect your application from intrusion (it can be a motive)
Now it is really simple to do:
What I did is in my main Layout page say “_Layout.cshtml” with the “<head>” tag and added this code in the tag
The output for that is
Please appreciate if it was helpful.