You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to prevent remote access to the error list page without adding authentication to the application? Will write logs to database and view them there or access the error page locally instead.
The text was updated successfully, but these errors were encountered:
I assume you've figured this out already, but yes:
options.CheckPermissionAction =context =>false;
will reject all attempts to access the error pages. As a more complete example, for the XmlFileErrorLog logger, omitting whatever else you normally configure:
Note that this rejects everything - if you still want to access the logs locally, you'd need to add some sort of "is local" or "is development" switch, but how that's done is more or less unique to your configuration.
Is it possible to prevent remote access to the error list page without adding authentication to the application? Will write logs to database and view them there or access the error page locally instead.
The text was updated successfully, but these errors were encountered: