You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With that code i'm directly routed to the home template. Which working great. if i clicking on private, I have to login to see the content of private template.
But if I change the template home by private like so:
When the page refreshes I have the template private without asking any login
=> This is private stuff!
The problem is that the client can change himself the value in the router.js as it is client file. Eventhough the server shouldn't give any data, the client access the template.
The text was updated successfully, but these errors were encountered:
The router.js is a client and server component. In the file i have the following route:
With that code i'm directly routed to the home template. Which working great. if i clicking on private, I have to login to see the content of private template.
But if I change the template home by private like so:
When the page refreshes I have the template private without asking any login
=> This is private stuff!
The problem is that the client can change himself the value in the router.js as it is client file. Eventhough the server shouldn't give any data, the client access the template.
The text was updated successfully, but these errors were encountered: