Closed Iran-110 closed 11 months ago
After each app:render hook on the server, the plugin caches the data in the nuxtApp.payload.data[key] in these lines and restore it on the client.
app:render
nuxtApp.payload.data[key]
So, if a user retrieves his private information once, another user can fetch it even without logging in.
Two probable recommendations:
No response
After hours of checking I found out that it is from the setting of @apollo/server in the API server and not nuxt.
Environment
Nuxt project info:
Build Modules: -
Describe the bug
After each
app:render
hook on the server, the plugin caches the data in thenuxtApp.payload.data[key]
in these lines and restore it on the client.So, if a user retrieves his private information once, another user can fetch it even without logging in.
Expected behaviour
Two probable recommendations:
Reproduction
No response
Additional context
No response
Logs
No response