-
Notifications
You must be signed in to change notification settings - Fork 1.2k
UnauthorizedError: No authorization token was found after building app (IE11) #1880
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
Which version of the generator did you use? "Latest version of the stack." doesn't really help, especially if you're using a beta version or if someone looks at this issue in the future, once the generator version has been increased.
|
Hello, |
I am using version 3.5.0 of the generator. Yes i followed the exact same steps on IE, CHROME and FIREFOX. Request Headers: Key Value Reponse Headers: Key Value Response Body {"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfaWQiOiI1NzMzOGIyZDI1MWVkNDQwMDE5OTA1NTkiLCJyb2xlIjoiYWRtaW4iLCJpYXQiOjE0NjMxNDM1NDksImV4cCI6MTQ2MzE2MTU0OX0.OYTxD2CEHhIX9YObRboM_wqyE8Ps07N_wh6z9Uy211g"} When i pulled this info i was running it on port 9000 with NGINX as a proxy but it does the same thing when running it directly on port 80 without NGINX. Thanks, |
I have the same problem, when the port number is 80 or 443.. The following fix solved the issue for me with other port numbers, such as 9000: #1523 However with port 80 or 443 it doesn't work: The problems seems to be in isSameOrigin() in util.service.js: Internet Explorer (11 which I'm testing) doesn't set $window.location.port to 80 but to "". $window.location is pushed to the origins vector and then filtered with the port number of url (which is 80) in isSameOrigin() and they don't match. Here's the util.service.js file: https://github.com/angular-fullstack/generator-angular-fullstack/blob/master/templates/app/client/components/util/util.service.js I'm not sure how to fix it, I can of course avoid filtering if the port is "" but that seems like an ugly fix.... |
@whittssg okay it's useful to know that you're using 3.5.0, because that indeed is not the latest version. Ugh, IE is such a pain in the ass. @erikrenberg I think that that fix would be fine, with a comment with a link to the IE bug. Do you want to make a PR? |
@Awk34 Sorry about that.. could of sworn i updated a week ago or so. to get it to work for now i just commented out the port check
|
Fixes logging in with IE11 when using well-known port numbers 80 and 443 where otherwise isSameOrigin() fails because of an IE bug. See issue angular-fullstack#1880
Hi. |
Latest version of the stack.
Hello, i finally put one of my apps into production (built) for testing and noticed that users cannot login when using IE 11..
I get the following error in the server console:
I get this error after the user authorization has completed, after building the app and trying to log in with IE11. It works fine in Chrome.. and IE 11 works find when not running in prod (running grunt serve). So i am posting here before troubleshooting further to make sure its not a bug in the generator.
Thanks..
The text was updated successfully, but these errors were encountered: