I'm new to Web API
, HTTP
and security in general, but I just want to know if this is possible: for a controller to relax security requirements when the HTTP
request originated from within the local area network.
My particular application has very low security requirements for clients inside the firewall. For instance, I want internal client apps to be able to make requests of controller actions marked with [AllowAnonymous]
so that they don't need to deal with OAuth
, etc (which just seems like complete overkill for my internal use scenario).
However, if the same controller actions are available to the public Internet, of course strict security requirements should apply.
Can security be handled differently based on origin? Or is the standard practice to expose both a public-facing
and an Internal API
?