Cross post of this question:
https://community.esri.com/thread/240169-what-link-allows-the-directions-widget-to-be-used-publicly