Disable Props from Being Displayed in "data-page" attribute #695
-
Hi! I'm working with Inertia (Vue3) and Laravel as the backend. Every prop passed through from the backend is being displayed in a Is there a way to disable this? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @digitalam025, there's already a thread about this topic over here. If you want oo disable the inheritance, e.g. the errors prop, you can set |
Beta Was this translation helpful? Give feedback.
-
I am facing similar issue, using vue2, and this data is visible as Json objects when I test send a GET request to my site. I see as Json objects there, that I passed as props. How can i hide so that no one can crawl my site pages and view this as json objects? Thanks |
Beta Was this translation helpful? Give feedback.
Hi @digitalam025,
there's already a thread about this topic over here.
If you want oo disable the inheritance, e.g. the errors prop, you can set
inheritAttrs
tofalse
. Please also see the PR over here. It changes the overall behaviour of the Vue 3 adapter but is not released yet.