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
By default, the /ingest endpoint will accept any payload it receives. We could implement a request validation callback to filter out unauthenticated or otherwise unacceptable requests, e.g.:
app.UseSerilogIngestion(options =>{// Just deny everything :-)options.OnIngestingAsync=async httpContext =>httpContext.Response.StatusCode=401;});
The text was updated successfully, but these errors were encountered:
By default, the
/ingest
endpoint will accept any payload it receives. We could implement a request validation callback to filter out unauthenticated or otherwise unacceptable requests, e.g.:The text was updated successfully, but these errors were encountered: