一些学习笔记。
more >>
玻璃晴朗,橘子辉煌
今天在测试前端开发项目,在生产环境的流程回归验证中,遇到了Web页面中使用iframe
内嵌三方告知用户协议无法加载的问题。Error
提示为
1 | Refused to display 'https://www.xxx.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'. |
这是一种经典的防范点击劫持(Click Jacking)的方式,通过设置HTTP请求头X-Frame-Options
来禁止跨域iframe
的引入。以下通过:
- 什么是点击劫持
- 点击劫持存在的Web安全隐患
- 如何防范点击劫持
三方面进行基本的概述与总结。
more >>Git is a distributed version control system, which means you can work locally but you can also share or “push” your changes to other servers. Before you can push your changes to a GitLab server you need a secure communication channel for sharing information.
more >>tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true