I doubt you can really do that. These are new restrictions for automating with latest Safari. Workaround solutions:
- automate Safari testing with something other than Selenium/WebDriver (AtoMac, AutoPy, Sikuli, etc.)
- use older versions of Safari and Selenium//SafariDriver, e.g. Safari 6-9 & Selenium 2.x, which don't have this restriction.