Static images and CSS not showing (401) but bundled css and js do
I was able to fix it by..
- Navigating to folder that has css files in IIS
- Double click "Authentication" icon on "Features View"
- Right click Anonymous Authentation as shown in the pic and select Edit
- Select "Application pool identity" option as shown in the pic
- Restart the website
I could finally figure it out ...
- Anonymous authentication was enabled (and using default config implying that the user seen by the code is the user IUSR).
- The files for the web app were not stored locally where IIS is installed, but on some sort of network shared drive ....
- In that place, IUSR had no read permissions, and could therefore not read the static resources.
I had to change the default "pass-though authentication", specifying that local execution is not done as the "authenticated users" (IUSR in that case).
In the WebApp Basic Settings in IIS, do not use "pass-throuh" authentication, use "Connect as"