How to define token for services like feature service and map service?
Is there any clear help for set proxy and define it on js aplication?
Sure there are dozen of threads about this.
Here is a link to the blog links that those threads would direct you to:
Setting up a Proxy
And here is the proxy github page:
GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.
Retrieving data ...