In Javascript the recommended approach is to use the esri resorces proxy and NOT generate your own token.
In Javascript the recommended approach is to use the esri resorces proxy and NOT generate your own token.
Is there any clear help for set proxy and define it on js aplication?
Anjelina,
Sure there are dozen of threads about this.
Here is a link to the blog links that those threads would direct you to:
https://community.esri.com/groups/technical-support/blog/2015/04/07/setting-up-a-proxy
And here is the proxy github page:
GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.