Is there a way to suppress the "SPA default page not found" error? #61429
Unanswered
gtbuchanan
asked this question in
Q&A
Replies: 0 comments
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.
-
This is the error I'm referring to. I understand the reasoning for it, but it is also thrown when bad actors attempt to access pages that don't exist (e.g.
/wordpress/xmlrpc.php
). The error is logged from the genericMicrosoft.AspNetCore.Server.IIS.Core.IISHttpServer
, so I don't want to suppress it in the logging config. I plan to write middleware to catchInvalidOperationException
, check the message, and log as a warning instead of an error. Is there a better way?Beta Was this translation helpful? Give feedback.
All reactions