The map loads fine on my local machine but it does not load when I deploy my build on the server machine which is a Windows Server 2012 machine, the map does not load up and browser console complains something about "require" function not defined. I checked on my peer developer's machine and on that also map loads correctly but on server it still does not load.
I am using following script headers related to ArcGIS core files:
<link rel="stylesheet" href="https://js.arcgis.com/4.3/esri/css/main.css">
I am suspecting it might be an issue of CORS.
Can somebody please guide me what should I do to fix this issue? Please elaborate the solution as I don't know details of CORS much.