I have an ArcGIS feature service that contains 18 layers. For some reason, when I query 2 of the layers through my JS web app, it prompts for additional authentication (similar to logging in to REST service directory).
All layers are referencing feature classes in the same SDE database using the same database connection authentication.
I am trying to prevent my users from having to authenticate twice (once when first hitting the feature service, and again when querying one of the two odd layers). Seems to be some odd auth error. (We are using Integrated Windows Authentication)