How to close basic auth popup in broswer Edge


To login i give my credentials in the URL, after succefull login the basic Auth popup will continue to display in the screen. This happens only when I use browser Edge. If I use browser Chrome then the basic auth pop removes itself automatically after succesfull login. I have to use browser Edge for our test-automation. Does anyone of you know how to get rid of the basic auth popup after succesfull login.