These settings are applied at an Environment level, to all Components inside that Environment.
If you need to bypass this rule and expose certain endpoints publicly, you can do that from the hosts property of each Component (Application / Service). This is useful if your applications have webhooks which need to be called by external systems (example below):