摘要: CSP(Content Security Policy)内容安全策略 是一个额外的安全层,用于检测并削弱某些特定类型的攻击,包括跨站脚本(XSS)和数据注入攻击等。无论是数据盗取,网站内容污染还是恶意软件分发,这些攻击都是主要的手段。 CSP被设计完全向后兼容,不支持CSP的浏览器也能与实现了CSP 阅读全文
posted @ 2023-06-03 21:37 云霄宇霁 阅读(235) 评论(0) 推荐(0) 编辑
摘要: HTTP Strict-Transport-Security (通常简称为HSTS) response header用来通知浏览器应该只通过HTTPS访问该站点,并且以后使用HTTP访问该站点的所有尝试都应自动重定向到HTTPS。 语法 Strict-Transport-Security: max- 阅读全文
posted @ 2023-06-03 21:37 云霄宇霁 阅读(201) 评论(0) 推荐(0) 编辑
摘要: ?: ?= ?!非捕获元的使用 正则表达式中()表示捕获分组,()会把每个分组里的匹配的值保存起来,多个匹配值可以通过数字n来查看(n是一个数字,表示第n个捕获组的内容)。 ?: 是用来消除使用圆括号匹配被缓存的副作用。 ?= 正向预查,在任何开始匹配圆括号内的正则表达式模式的位置来匹配搜索字符串。 阅读全文
posted @ 2023-06-03 21:37 云霄宇霁 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Azure Active Directory(Azure AD)支持两种类型的身份验证:基于Password的身份验证和基于Certificate的身份验证。虽然可以通过Azure Portal或者Microsoft API(Microsoft Graph)创建Password,但长期保护Passw 阅读全文
posted @ 2023-06-03 21:37 云霄宇霁 阅读(122) 评论(0) 推荐(0) 编辑
摘要: SQL Server索引基本上项目中都会用到,但是很多时候使用不规范甚者滥用,原因很简单就是对SQL Server 索引原理了解不清导致的。本篇文章旨在以详细通俗的方式介绍SQL Server索引。 索引是什么? 索引是与表或试图关联的磁盘上的结构,可以加快从表或试图中检索行的速度。索引包含由表或试 阅读全文
posted @ 2023-06-03 21:36 云霄宇霁 阅读(230) 评论(0) 推荐(0) 编辑
摘要: The Mediator design pattern defines an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping from referi 阅读全文
posted @ 2023-06-03 21:35 云霄宇霁 阅读(6) 评论(0) 推荐(0) 编辑
摘要: The Adpative design pattern converts the interface of a class to another interface clients expect. This design pattern lets classes work together that 阅读全文
posted @ 2023-06-03 21:34 云霄宇霁 阅读(3) 评论(0) 推荐(0) 编辑
摘要: The Bridge design pattern decouples an abstraction from its implementation so tha the two can vary independently. 桥接模式将抽象和实现解耦,以便两者可以独立变化。 UML Class D 阅读全文
posted @ 2023-06-03 21:34 云霄宇霁 阅读(2) 评论(0) 推荐(0) 编辑
摘要: The Decorator Design Pattern attaches additional responsibilities to an object dynamically. This pattern provide a flexible alternative to subclassing 阅读全文
posted @ 2023-06-03 21:33 云霄宇霁 阅读(1) 评论(0) 推荐(0) 编辑
摘要: The Composite design pattern composes objects into tree structures to represent part-whole hierarchies. This pattern lets clients treat individual obj 阅读全文
posted @ 2023-06-03 21:33 云霄宇霁 阅读(4) 评论(0) 推荐(0) 编辑
摘要: The Facade design patten provides a unified interface to a set of interfaces in a subsystem.This pattern defines a higher-level interface that makes t 阅读全文
posted @ 2023-06-03 21:33 云霄宇霁 阅读(3) 评论(0) 推荐(0) 编辑
摘要: The Chain of Responsibility design pattern avoids coupling the sender of the request to its receiver by giving more than one object a chance to handle 阅读全文
posted @ 2023-06-03 21:32 云霄宇霁 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Give a language, the Interpreter design pattern defines a representation for its grammar along with an interpreter that uses the representation to int 阅读全文
posted @ 2023-06-03 21:32 云霄宇霁 阅读(1) 评论(0) 推荐(0) 编辑
摘要: The Command design pattern encapsulates a request as an object, thereby letting you paramize clients with different requests, queue or log requests, a 阅读全文
posted @ 2023-06-03 21:32 云霄宇霁 阅读(4) 评论(0) 推荐(0) 编辑
摘要: The Flyweight design pattern uses sharing to support large numbers of fine-gained objects efficiently. 享元模式用共享有效支持大量细粒度的对象。 UML Class Diagram Flyweigh 阅读全文
posted @ 2023-06-03 21:32 云霄宇霁 阅读(1) 评论(0) 推荐(0) 编辑
摘要: The Iterator design pattern provides a way to acess the elements of an aggregate object sequentially without exposing its underlying representation. 迭 阅读全文
posted @ 2023-06-03 21:31 云霄宇霁 阅读(1) 评论(0) 推荐(0) 编辑
摘要: The State design pattern allows an object to alter its behavior when its internal state changes, The object will appear to change its class.状态设计模式允许当对 阅读全文
posted @ 2023-06-03 21:31 云霄宇霁 阅读(3) 评论(0) 推荐(0) 编辑
摘要: The Strategy design pattern defines a familiy of algorithms, encapsulate each one, and make them interchangeable. This pattern lets the algorithm vary 阅读全文
posted @ 2023-06-03 21:31 云霄宇霁 阅读(2) 评论(0) 推荐(0) 编辑
摘要: The Template Method design pattern defines the skeleton of an algorithm in an operation, defering some steps to subclasses. This pattern lets subclass 阅读全文
posted @ 2023-06-03 21:29 云霄宇霁 阅读(7) 评论(0) 推荐(0) 编辑
摘要: The Creational Design Pattern are Categorized into two types. Object-Creational Patterns: Object -Creational Patterns deal with object creation. Here, 阅读全文
posted @ 2023-06-03 21:28 云霄宇霁 阅读(3) 评论(0) 推荐(0) 编辑