'Angular: Basic Authentication works with ng serve, but does not pop-up when built
I am working on a angular website, that communicates with my REST API.
One API call requests Basic Authentication, so it opens the BasicAuth dialog in the browser when the request is called. This works perfectly when I use ng serve -ssl to serve the application. However when builing it, and serving it on an http-server, a 401 error is returned, and the basic-auth dialog never opens.
Is this normal? Does anyone have an idea what I might be doing wrong?
Thank you so much, I've spent a lot of time working on this, with no hope.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
