Hi guys,
I'm pulling my hair since days because a problem I got. Let me explain it:
I have a IIS 10 Server set up with URL rewrite (Reverse Proxy) Module that routes requests to my node.js / express app running on localhost:3000. The Node server has a connection to active directory and also handles SSO with Kerberos token etc.
The Express app also serves my build folder from React index.html on the rooot level ("/"). So when I go tohttp://myserver I should see the website and this is the case BUT:
I get error in the console: GET http://myserver/static/js/2.d0df15ed.chunk.js net::ERR_ABORTED 401 (Unauthorized)
I also get this error when I log with procmon.exe: https://i.stack.imgur.com/8wm6f.png
So the path should be http://myserver/client/build/static..... right?
I just don't know how and what exactly is the problem? Is this a problem from the reverse proxy? Or did I setup my express static file serving incorrectly?
I have just this in node:
app.use(express.static(path.join(__dirname,"client","build")));
I tried to uninstall static file serving on IIS "Static Content" but that doesn't do anything.
Do you have any idea how to solve this? I really am out of ideas. Thx guys!