question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BrowserPlatformLocation cannot handle credentials in the URL in Firefox

See original GitHub issue

Which @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

with-credentials

https://angular.realworld.io/ => Renders successfully

without-credentials

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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
atscottcommented, Sep 29, 2021

@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.

0reactions
angular-automatic-lock-bot[bot]commented, Apr 14, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found