Add policy to all routes by default?

I want to add a policy to all API routes. I don’t want to use middleware as I only want this to run when we get requests from the API side.

Is there a way to inject the policy into all API configs at register/bootstrap?

This topic has been created from a Discord post (1222045164693094441) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord