Apple offers that for Macs in many ways. Set your security policy level to Reduced or Permissive:
https://support.apple.com/en-mide/guide/security/sec7d92dc49...