Skip to content
Discussion options

You must be logged in to vote

Hi zeaiter-squared,

No problem for miselading. Based on your description, the behavior you observed is consistent with how Next.js handles server-side rendering for dynamically generated pages.

When a field in the Next-Router-State-Tree is manipulated, the server will still render the page according to the current routing state. However, the server may include the user DTO in the HTTP response because it is required to render the profile page correctly. This does not indicate a security flaw, but rather reflects how server components and dynamic routing work in Next.js.

Sending the user DTO to the client in this case is expected for proper rendering and hydration. It is not intended as a …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@zeaiter-squared
Comment options

@Umuts-Codes
Comment options

@zeaiter-squared
Comment options

@Umuts-Codes
Comment options

Answer selected by zeaiter-squared
@zeaiter-squared
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants