<!-- - Please follow the issue template below for bug reports. - If you have a support request rather than a bug, please use [Stack Overflow](http://stackoverflow.com/questions/tagged/jhipster) with the JHipster tag. - For bug reports it is mandatory to run the command `jhipster info` in your project's root folder, and paste the result here. - Tickets opened without any of these pieces of information will be **closed** without any explanation. --> ##### **Overview of the issue** <!-- Explain the bug, if an error is being thrown a stack trace helps --> When creating entities with infinite scroll on a Mongo application, there's an error with the headers and the request fails. ##### **Reproduce the error** <!-- For bug reports, an unambiguous set of steps to reproduce the error --> Create an entity and select "infinite-scroll" for the pagination. - [x] Checking this box is mandatory (this is just to show you read everything) <!-- Love JHipster? Please consider supporting our collective: 👉 https://opencollective.com/generator-jhipster/donate -->