You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the official angular documentation, when running on the server, relative URLs such as api/heroes should be automatically converted to absolute URLs (for example, https://my-server.com/api/heroes in production and (I guess) http://localhost:4200/api/heroes in development), if you are using one of the @nguniversal/*-engine packages (such as @nguniversal/express-engine). But this is not the case (for the @nguniversal/express-engine package that I tested).
For the following request, when running on the server (see Minimal Reproduction below),
🐞 Bug report
What modules are related to this issue?
Is this a regression?
no
Description
According to the official angular documentation, when running on the server, relative URLs such as
api/heroes
should be automatically converted to absolute URLs (for example,https://my-server.com/api/heroes
in production and (I guess)http://localhost:4200/api/heroes
in development), if you are using one of the @nguniversal/*-engine packages (such as @nguniversal/express-engine).But this is not the case (for the @nguniversal/express-engine package that I tested).
For the following request, when running on the server (see
Minimal Reproduction
below),you get the following error.
Thank you in advance for considering this issue.
🔬 Minimal Reproduction
Clone this minimal GitHub repository
Or if you want to reproduce it manually step by step.
Navigate to the newly created app.
cd my-app
Add angular universal.
Copy and paste all changes made in this commit.
Run the app then open
http://localhost:4200/
on your browser and look at the console on the server.🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: