On my server that works with nginx, access is protected by a basic http authentication. I am currently developing a piece of code that requires HTTPS redirection, and when this redirection occurs, I have a new authentication popup.
How can I avoid a new authentication popup when switching protocols ?