I have a dilemma with angular 18 (I suppose it is the same with 17)
I need to hide http requests from the browser for security reasons (an easy thing to do with next)
Angular with ssr hides the gets from me by default and in “provideClientHydration” I add that it takes into account the post requests and those that have some authentication header, provideClientHydration(withHttpTransferCacheOptions({ includePostRequests: true, includeRequestsWithAuthHeaders: true }))
So far so good… the first requests are not reflected in the browser (on network)
But once the app is stabilized, any other http request it makes is reflected… since it stops using the server-side cache…
what can I do to continue keeping the requests hidden?
Nicolas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.