System.Exception: Call to Node module failed with error: Error: URLs requested via Http on the server must be absolute. URL: /Account/GetUser/
This error happens when calling http from Angular Universal. From the server, I have no access to the 'location' object.
Why is there a restriction in Angular preventing calling web services from a relative url?
How can I retrieve the host name without using 'location'?
via Jonas Arcangel
No comments:
Post a Comment