Our testing environment is locked with basic authentication. How do I resolve it?

Our testing environment is locked with basic authentication. In Android devices, we can authorize the process by adding the credentials in the URL :

(https://<username>:<password>@example.com).

This does not seem to work with iOS/Safari devices and we were not able to find a workaround so far, as Appium does not seem to support basic auth, thus the test process is not able to continue.