Install ESRI API for JS On localhost add another version explain and enable CORS.

Published --