redux store 保存在哪里?

编程入门 行业动态 更新时间:2024-10-10 14:26:16
本文介绍了redux store 保存在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在研究 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.

推荐答案

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

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

更多推荐

redux store 保存在哪里?

本文发布于:2023-11-26 07:51:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1633260.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:redux   store

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!