Please see this StackOverflow question.
I am porting an application from .Net Framework to .Net Core 3.1. The solution in the above SO question was used in the .Net Framework solution to make sure that the controller could only be used by other applications on the same server.
I have found a similar AuthorizeAttribute, but is does not have the same method to override.
I also think I know how to add filters:
services.AddControllers(options =>
{
options.Filters.Add(*some_filter_here*);
});
But I don't know how to create the filter.
How do I do this in .Net Core 3.1? Or is there a different way to do what I want?