Hi, I am trying to get the base downloaded Project working and followed the start up steps. I have not changed anything.
When I try login via <a class="postlink" href="http://localhost:4200/">http://localhost:4200/</a> with correct username\password it just redirects me back to the login page, not the dashboard. The initial password reset worked and if I type the wrong password it tells me failed login. So the ASP.NET Core API is working. Seems like the session token isn't working properly?
Not sure if this is relevant, but when I start the ASP.NET Solution for the first time Swagger is throwing a javascript error Unhandled exception at line 69, column 21 in <a class="postlink" href="http://localhost:22742/">http://localhost:22742/</a> 0x800a1391 - JavaScript runtime error: 'abp' is undefined
Line is var csrfToken = abp.security.antiForgery.getToken()
Thanks, Matt
4 Answer(s)
-
0
Hi,
That error message is not related to your problem. Do you see any errors on your browser's javascript console ?
If you can use Chrome, check "Preserve log" in javascript console and try to see if there is a javascript error ? By the way, can you also check which version of "@angular/router" do you use in your project ? Please check it from node_modules folder.
As I remember one of the latest versions had this problem.
Thanks.
-
0
Hi, Ok interesting, it works in Chrome but doesn't in IE11. How do I check the version? I only downloaded the new project yesterday.
Thanks, Matt
-
0
Hi, Checking if there is an issue with IE11? How do I check the version per your request? Note this is Angular 2.
Thanks, Matt
-
0
Hi,
Sorry for my late reply. It seems like this is an issue with angular-cli and aot, see <a class="postlink" href="https://github.com/angular/angular-cli/issues/5762">https://github.com/angular/angular-cli/issues/5762</a>.
You can disable aot and try to see if it solves the problem like explained in here <a class="postlink" href="https://github.com/angular/angular-cli/issues/5762#issuecomment-291798471">https://github.com/angular/angular-cli/ ... -291798471</a>.
Please let us know if it does not.
Thanks.