I am trying to get data from search API. The search value is passed as a query string.
No errors at compile time, no errors at runtime.
const params = new HttpParams().set('search', 'pizza');
this.http
.get('/hello', { responseType: 'json', params })
.subscribe(console.log, console.log);
Generates the /hello
GET query but without the query string parameters.
What's wrong?
Angular exact version is 9.1.11
EDIT
The issue does not come from Angular but on how I try to embed the app. It works when using the default dev server without trying to embed it.