redux商店在哪里保存? [英] Where is redux store saved?

查看:120
本文介绍了redux商店在哪里保存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调查redux应用程序的安全性,我在redux存储中存储了某些值,即用户令牌等。并试图查看其他人是否可以通过xss攻击获取访问权限,例如,我检查过sessionStorage,localStorage,cookies,它不存在,并且它不在我的app.js文件(我的包文件)中,因此我的问题。

I was looking into how secure a redux application can be, I am storing certain values in redux store i.e. user token etc.. and tried to see if someone else could gain access to them via an xss attack for example, I checked sessionStorage, localStorage, cookies and it is not there, as well as it is not inside my app.js file (my bundle file), hence my question.

推荐答案

从文档的这一部分( http:/ /redux.js.org/docs/FAQ.html#performance-state-memory )我推断它存储在内存中,所以它不是持久性的。

From this part of documentation (http://redux.js.org/docs/FAQ.html#performance-state-memory) I deduce it's stored in memory, so it is not persistent.

这篇关于redux商店在哪里保存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆