-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Authentication bug with IE11 #2046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is #1880 related? See if the problem still exists on a brand new scaffold using 3.7.6 |
I don't believe it is. I avoided the token issue by neutralizing Util.isSameOrigin() which always returns true and authentication works fine in IE in a basic scenario. |
Couldn't deploy the latest version (3.7.6) to heroku. See #1950 |
My solution for heroku #1966 |
I confirm that the problem also occurs with scaffolding 3.7.6 on IE11 (other parameters are the same). |
Am I the only one around here who thinks this is a BIG bug? |
@flaurian do you have a solution to this that could be put into the generator? If so, I would apprectiate a PR. |
Unfortunately my only idea would be to force a reload to simulate the F5 click with this code in the successful promise of the login function in the auth.service:
But there should be a more elegant way to do this. My feeling is that the $cookies service may have some trouble with IE11 but I cannot find the exact spot where it fails. |
That's pretty ugly, yeah, but if it's the only real solution, then it's better than nothing. Especially if it's something that most likely wouldn't be encountered by an actual user. |
I tested my idea to reload but it didn't work properly. I really don't get why IE is behaving like this. I guess it has something to do with the headers, but this is beyond my knowledge. |
Here is the case:
I create an application (parameters below), I push it on heroku. I create two users (A and B).
I open IE11 log in as A.
"Hello A" is displayed right on the bar.
Then I log out.
I login as B.
"Hello A" is displayed right on the bar.
I hit F5
"Hello B" is right displayed right on the bar.
For IE to work I had to modify Util.isSameOrigin() to return true always.
This needs to be tested several times as behaviour is inconsistent (ex. closing IE and reopening before executing the scenario).
Same scenario works flawless on Firefox, Chrome, Safari whether on mac or windows.
Moreover, console log outputs several CSS errors : CS3111: @font-face encountered unknown error. (Not sure if this is related).
The text was updated successfully, but these errors were encountered: