So, I'm starting to think CORS support is broken in JS API 3.21, or does not support using a webadaptor with windows integrated authentication.
Has anyone have a setup like this working? If so can you share how you made it work? Is there any documentation about this combo?
I will try to be clear and concise with the details.
Server: windows 2012, with webadaptor with windows authentication, arcgis server 10.5, authentication web tier, windows authentication; webadaptor with windows authentication on.
Web app with esri js 3.21, with windows authentication (same domain).
My web app works fine. There's a first request that fails with 401:
Then requests to my mapservice work fine, and use callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback in the querystring.
When I add my server to esriConfig.defaults.io.corsEnabledServers, things break.
There is only 1 request to my mapservice.
It fails with 401 Unauthorized. And nothing else is loaded from the webadaptor:
As you can see, no callback is used.
Accept-Encoding:gzip, deflate, br
Date:Fri, 18 Aug 2017 14:54:17 GMT
Status Code:401 Unauthorized
IIS Log says no username is given in the request, and the error is 401 2 5 2.
Any help much appreciated.