Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 419810d

Browse files
committed
update 2022年 4月29日 星期五 18时34分37秒 CST
1 parent 9f82fde commit 419810d

260 files changed

Lines changed: 8466 additions & 4750 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ push.sh
77
/1earn/Security/RedTeam/Web安全/靶场/sqli-labs-WalkThrough.md
88
/1earn/Security/安全资源/靶机/VulnHub/symfonos/symfonos6-WalkThrough.md
99
/1earn/Security/RedTeam/语言安全/dotnet安全/*
10-
/1earn/Security/RedTeam/语言安全/JAVA安全/*
1110
/1earn/Security/RedTeam/语言安全/PHP安全/*
1211
/assets/img/Develop/*
13-
/assets/img/Security/RedTeam/语言安全/*
12+
/assets/img/Security/RedTeam/语言安全/PHP安全
1413
/assets/img/Security/PWN/*

1earn/Develop/.net/ASP.NET/笔记/利用ashx文件实现文件的上传功能.md

Lines changed: 0 additions & 151 deletions
This file was deleted.

1earn/Develop/Ruby/Speed-Ruby.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
---
44

5-
# 关于 Ruby
5+
## 关于 Ruby
66

77
- Ruby 是脚本语言
88

@@ -18,13 +18,13 @@
1818

1919
---
2020

21-
# 入门
21+
## 入门
2222

2323
* [入门1](./入门/入门1.md)
2424
* [入门2-对象](./入门/入门2-对象.md)
2525
* [入门3-创建命令](./入门/入门3-创建命令.md)
2626

27-
# 基础
27+
## 基础
2828

2929
* [对象、变量和常量](./基础/对象、变量和常量.md)
3030
* [条件判断](./基础/条件判断.md)
@@ -39,7 +39,7 @@
3939
* [字符串](./基础/字符串.md)
4040
* [散列](./基础/散列.md)
4141

42-
# 模块
42+
## 模块
4343

4444
* [File类与Dir类](./模块/File类与Dir类.md)
4545
* [Encoding 类](./模块/Encoding类.md)
@@ -48,7 +48,7 @@
4848
* [Time 类与 Date 类](./模块/Time类与Date类.md)
4949
* [正则](./模块/正则.md)
5050

51-
# 知识点
51+
## 知识点
5252

5353
* [并发与线程](./笔记/并发与线程.md)
5454
* [Socket编程](./笔记/Socket编程.md)

1earn/Develop/Web/HTTP/Connection.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ KeepAlive=On 时,每次用户访问,打开一个 TCP 连接,Apache 都会
3434

3535
---
3636

37-
**Source & Reference**
37+
## Source & Reference
38+
3839
- [Connection: close和keep-alive之间的区别](https://developer.aliyun.com/article/277977)
3940
- [关于设置http响应头connection的作用](https://blog.csdn.net/minghaitang/article/details/83567259)

1earn/Develop/Web/HTTP/Vary.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
---
44

5-
# Vary 的作用
5+
## Vary 的作用
66

77
Vary 一般出现在 HTTP 请求的响应信息头部,比如像下面这样
88
```
@@ -64,5 +64,6 @@ Vary 存在于响应头中,它的内容来自于请求头中相关字段,Var
6464

6565
---
6666

67-
**Source & Reference**
67+
## Source & Reference
68+
6869
- [HTTP请求的响应头部Vary的理解](https://blog.csdn.net/qq_29405933/article/details/84315254)

1earn/Develop/Web/笔记/同源策略.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343

4444
---
4545

46-
# 跨域的解决方法
46+
## 跨域的解决方法
4747

4848
**业务环境中一些跨域场景**
4949
1. 比如后端开发完一部分业务代码后,提供接口给前端用,在前后端分离的模式下,前后端的域名是不一致的,此时就会发生跨域访问的问题。
5050
2. 程序员在本地做开发,本地的文件夹并不是在一个域下面,当一个文件需要发送 ajax 请求,请求另外一个页面的内容的时候,就会跨域。
5151
3. 电商网站想通过用户浏览器加载第三方快递网站的物流信息。
5252
4. 子站域名希望调用主站域名的用户资料接口,并将数据显示出来。
5353

54-
## CORS(跨域资源共享)
54+
### CORS(跨域资源共享)
5555

5656
CORS(Cross-origin resource sharing,跨域资源共享)是一个 W3C 标准,定义了在必须访问跨域资源时,浏览器与服务器应该如何沟通。CORS 背后的基本思想,就是使用自定义的 HTTP 头部让浏览器与服务器进行沟通,从而决定请求或响应是应该成功,还是应该失败。
5757

@@ -133,7 +133,7 @@ Access-Control-Max-Age: 1728000
133133

134134
---
135135

136-
## JSONP 跨域
136+
### JSONP 跨域
137137

138138
由于 script 标签不受浏览器同源策略的影响,允许跨域引用资源。因此可以通过动态创建 script 标签,然后利用 src 属性进行跨域,这也就是 JSONP 跨域的基本原理。
139139

@@ -165,7 +165,7 @@ body.appendChild(script);
165165

166166
---
167167

168-
## HTML 标签跨域
168+
### HTML 标签跨域
169169

170170
`<script>` `<img>` `<iframe>` `<link>` 等带 src 属性的标签都可以跨域加载资源,而不受同源策略的限制。
171171

@@ -216,13 +216,13 @@ img.src = 'http://www.xxxx.cn/test?name=xxx';
216216

217217
---
218218

219-
## 服务器代理
219+
### 服务器代理
220220

221221
浏览器有跨域限制,但是服务器不存在跨域问题,所以可以由服务器请求所有域的资源再返回给客户端。
222222

223223
---
224224

225-
## document.domain 跨域
225+
### document.domain 跨域
226226

227227
对于主域名相同,而子域名不同的情况,可以使用 document.domain 来跨域。这种方式非常适用于 iframe 跨域的情况。
228228
比如,有一个页面,它的地址是 http://www.xxx.cn/a.html,在这个页面里面有一个 iframe,它的 src 是 http://xxx.cn/b.html。很显然,这个页面与它里面的 iframe 框架是不同域的,所以我们是无法通过在页面中书写 js 代码来获取 iframe 中的东西的。
@@ -274,7 +274,7 @@ img.src = 'http://www.xxxx.cn/test?name=xxx';
274274

275275
---
276276

277-
## window.name 跨域
277+
### window.name 跨域
278278

279279
window 对象有个 name 属性,该属性有个特征:即在一个窗口(window)的生命周期内,窗口载入的所有的页面(不管是相同域的页面还是不同域的页面)都是共享一个 window.name 的,每个页面对 window.name 都有读写的权限,window.name 是持久存在一个窗口载入过的所有页面中的,并不会因新页面的载入而进行重置。
280280

@@ -322,7 +322,7 @@ window 对象有个 name 属性,该属性有个特征:即在一个窗口(w
322322

323323
---
324324

325-
## window.postMessage 跨域
325+
### window.postMessage 跨域
326326

327327
window.postMessage(message,targetOrigin) 方法是 HTML5 新引进的特性,可以使用它来向其它的 window 对象发送消息,无论这个 window 对象是属于同源或不同源。这个应该就是以后解决 dom 跨域通用方法了。
328328

@@ -358,7 +358,7 @@ window.postMessage(message,targetOrigin) 方法是 HTML5 新引进的特性,
358358

359359
---
360360

361-
## location.hash 跨域
361+
### location.hash 跨域
362362

363363
location.hash 方式跨域,是子框架修改父框架 src 的 hash 值,通过这个属性进行传递数据,且更改 hash 值,页面不会刷新。但是传递的数据的字节数是有限的。
364364

@@ -391,7 +391,7 @@ a.html 欲与 b.html 跨域相互通信,通过中间页 c.html 来实现。
391391

392392
---
393393

394-
## flash
394+
### flash
395395

396396
flash 有自己的一套安全策略,服务器可以通过 crossdomain.xml 文件来声明能被哪些域的 SWF 文件访问,SWF 也可以通过 API 来确定自身能被哪些域的 SWF 加载。
397397

@@ -400,6 +400,7 @@ flash 有自己的一套安全策略,服务器可以通过 crossdomain.xml 文
400400

401401
---
402402

403-
**Source & Reference**
403+
## Source & Reference
404+
404405
- [浏览器同源策略及跨域的解决方法](https://juejin.im/post/6844903681683357710)
405406
- [同源策略那些事](https://xz.aliyun.com/t/6614)

0 commit comments

Comments
 (0)