BrowserPlatformLocation cannot handle credentials in the URL in Firefox
See original GitHub issueWhich @angular/* package(s) are the source of the bug?
router, Don’t known / other
Is this a regression?
No
Description
Supposed you have a working Angular app with working routing (a component is generated after <router-outlet>
). When opening the same working application with credentials embedded into the URL (basic auth), Angular’s router stops working. No component is generated after <router-outlet>
. When removing those embedded credentials from the URL, the applications works again.
You can reproduce this by using an example Angular application like this: https://github.com/gothinkster/angular-realworld-example-app
The example URL would be:
https://test:test@angular.realworld.io/ => Renders an empty app body
https://angular.realworld.io/ => Renders successfully
Please provide a link to a minimal reproduction of the bug
https://test:test@angular.realworld.io/
Please provide the exception or error you saw
No exception itself - only an empty app body respectively nothing generated after `<router-outlet>`.
Please provide the environment you discovered this bug in
The example application (https://github.com/gothinkster/angular-realworld-example-app) seems to be using Angular v11.2.8. However, I can reproduce this in my own application too which is running on the latest version: v12.2.6.
I'm on Windows 10 with Firefox v92.
Anything else?
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Fix login issues on websites that require a username and ...
If you find that you can't log in to a website that requires a username and password, follow the steps described in this...
Read more >Cannot login using credentials | Firefox Support Forum
I DISABLED this extension from within the Firefox Menu \ Add-ons link itself. (Running in Safe Mode did not fix or identify the...
Read more >Can't access some website. | Firefox Support Forum
I cannot access to Facebook or Messenger on Firefox, when i open, Firefox said ... The DC in SSL_ERROR_DC_EXPIRED = Delegated Credentials.
Read more >website will not login | Firefox Support Forum
Firefox will not work with Farmers.com(insurance) website. The site will not let me login. When I hit login it just 'flashes' and the...
Read more >I can't log into a specific website when using Firefox.
When I use that OTHER browser (AKA Google Chrome), I can quickly sign in. Any suggestions as to how to get Firefox to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@julmot There is no timeline for a fix for this. I mentioned in the previous comment exactly what you can do to make it work in your application. It should not take long to create a fix for your use-case.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.