How can I embed a ArcGIS Online hosted network analysis service (routing) in the ArcGIS online template "Directions" that the resulting Direction app can be used public without credentials?
That is exactly one of the purposes of the esri proxy.
Setting up a Proxy | Support Services Blog
GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.
Thank you, Robert!
Don't forget to mark this question as answered by clicking on the "Correct Answer" link on the reply that answered your question.
Retrieving data ...