>PROBLEM
Attempt to access an Angular project running from a docker fails, returning on the browser "ERR_EMPTY_RESPONSE".
>SOLUTION
Add --host argument to the "ng serve" command to start the service.
- before:
ng serve --port 4400 --ssl true
- after:
ng serve --port 4400 --ssl true --host 0.0.0.0
also tested OK with:
ng serve --port 4400 --ssl true --host=0.0.0.0
>ENV
windows 10
angular 16
>ref
tipsfordev.com/localhost-didn-t-send-data-err-empty-response-and-curl-52-empty-reply-from-server
@CTL:
y;faq-angular: ERR_EMPTY_RESPONSE<memo<docker;.
No comments:
Post a Comment