Nuxt.js: the $nuxt Objects mounted to window will expose the data of vuex

Created on 9 Oct 2017  Â·  4Comments  Â·  Source: nuxt/nuxt.js

image
How can I hide the exposed data?
@alexchopin @Atinux @pi0

This question is available on Nuxt.js community (#c1623)
question

Most helpful comment

Realistically I'm not sure what you can do.

In a fully single page app you would be exposing your data via XHR calls.
In a server rendered app everything that the browser renders or consumes in javascript would be 'exposed' data.

If there is sensitive data that isn't required for the usage of your app, you should filter that data out on the api or server side in order to not expose it.

All 4 comments

+1

Realistically I'm not sure what you can do.

In a fully single page app you would be exposing your data via XHR calls.
In a server rendered app everything that the browser renders or consumes in javascript would be 'exposed' data.

If there is sensitive data that isn't required for the usage of your app, you should filter that data out on the api or server side in order to not expose it.

@JamieLottering sry! It's my fault. Thank you for your answer

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msudgh picture msudgh  Â·  3Comments

mattdharmon picture mattdharmon  Â·  3Comments

shyamchandranmec picture shyamchandranmec  Â·  3Comments

VincentLoy picture VincentLoy  Â·  3Comments

bimohxh picture bimohxh  Â·  3Comments