333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
 
2.5.0 / 2019-03-08
==================
 
**others**
  * [[`4fcadc4`](http://github.com/eggjs/egg-security/commit/4fcadc4d34f915333bd02264f49ccb28400bfb1f)] - deps: update packs and ignore lock file (#54) (Maledong <<maledong_github@outlook.com>>)
  * [[`5772242`](http://github.com/eggjs/egg-security/commit/577224217e079fd6fe38b7a86401d99ddf03a22c)] - test: use expectLog to assert log (#53) (fengmk2 <<fengmk2@gmail.com>>)
 
2.4.3 / 2019-02-19
==================
 
**fixes**
  * [[`b80202f`](http://github.com/eggjs/egg-security/commit/b80202ffde474e3ade09f6dc4b29a9bb925e4241)] - fix: make sure domain is string before use it (#52) (fengmk2 <<fengmk2@gmail.com>>)
 
2.4.2 / 2019-01-04
==================
 
**fixes**
  * [[`ad21465`](http://github.com/eggjs/egg-security/commit/ad21465b3a40f6c9e38fa58ba85b8e86eda47ca3)] - fix: fix referrer-policy enum check (#50) (Century Guo <<648772021@qq.com>>)
 
2.4.1 / 2018-11-15
==================
 
  * fix: shtml check domainWhiteList hostname get null (#49)
 
2.4.0 / 2018-08-24
==================
 
**others**
  * [[`57bc4d9`](http://github.com/eggjs/egg-security/commit/57bc4d9bb1334e699f87306820a0e6bb42d6aed8)] - bug (methodnoallow): Fix for '`OPTIONS` not allowed' (#40) (Maledong <<maledong_github@outlook.com>>)
  * [[`8ead61e`](http://github.com/eggjs/egg-security/commit/8ead61eb38370b6dade6785bc945fbb32caedd63)] - chore: improve npm scripts (#48) (Maledong <<maledong_github@outlook.com>>)
  * [[`817d114`](http://github.com/eggjs/egg-security/commit/817d11462e43aee9986f3cd4b13acf9a1e70f7b9)] - doc (README.zh-CN.md, README.md): Fix typos and add missing trans (#45) (Maledong <<maledong_github@outlook.com>>)
 
2.3.1 / 2018-08-16
==================
 
**fixes**
  * [[`8997866`](http://github.com/eggjs/egg-security/commit/8997866d5ff9d3aa445752be1d3b93ed94dc113b)] - fix: preprocess config in app.js (#46) (Yiyu He <<dead_horse@qq.com>>)
 
**others**
  * [[`9baf72e`](http://github.com/eggjs/egg-security/commit/9baf72ece4431b55eb85dd0daf4b8ace6ddb314e)] - chore (shtml,cliFilter,sjs,README): Modifications of files (#47) (Maledong <<maledong_github@outlook.com>>)
 
2.3.0 / 2018-08-14
==================
 
**fixes**
  * [[`835eff5`](http://github.com/eggjs/egg-security/commit/835eff54fb2fe159ce86cc810f714259ba988bca)] - Fix: Make `domain` and `whiteList`, `protocalWhiteList` case insensitive (Maledong <<maledong_github@outlook.com>>)
  * [[`81f757a`](http://github.com/eggjs/egg-security/commit/81f757a291f1a8084c6b5e106de11f16a6ef1e0a)] - fix: use faster non-secure ID generator (#43) (Andrey Sitnik <<andrey@sitnik.ru>>)
 
**others**
  * [[`72e7ceb`](http://github.com/eggjs/egg-security/commit/72e7ceb04e2d4ff2d65ebb8926aa938093da289c)] - utils (isSafeDomain): Use `matcher` to check for a wild character of a (#42) (Maledong <<maledong_github@outlook.com>>)
  * [[`a7035cf`](http://github.com/eggjs/egg-security/commit/a7035cfa7bea9e53be4227964836a1de79f7b75c)] - doc: Translate from Chinese into English for several files for their comments (#41) (Maledong <<maledong_github@outlook.com>>)
 
2.2.3 / 2018-07-11
==================
 
**fixes**
  * [[`b5e1741`](http://github.com/eggjs/egg-security/commit/b5e17410045cb36b68d2e4f897c60ea6841c0f42)] - fix: disable nosniff on redirect status (#38) (fengmk2 <<fengmk2@gmail.com>>)
 
2.2.2 / 2018-04-12
==================
 
**fixes**
  * [[`dbc9a44`](http://github.com/eggjs/egg-security/commit/dbc9a445816d69ec59320b8f655d6e965a16edfb)] - fix: format illegal url (#36) (Yiyu He <<dead_horse@qq.com>>)
 
**others**
  * [[`9676127`](http://github.com/eggjs/egg-security/commit/96761278b0f167c315af9d00842456aaa3a420fc)] - docs: update warning infomation for ignoreJSON (#35) (Haoliang Gao <<sakura9515@gmail.com>>)
 
2.2.1 / 2018-03-28
==================
 
**others**
  * [[`e6e5e65`](http://github.com/eggjs/egg-security/commit/e6e5e65034d314646bd5cf98303cce97fece86dd)] - docs: fix SSRF link (#34) (Haoliang Gao <<sakura9515@gmail.com>>)
 
2.2.0 / 2018-03-27
==================
 
**features**
  * [[`eba4555`](http://github.com/eggjs/egg-security/commit/eba45551f6170761792389632bdaae2afcae57d0)] - feat: support safeCurl for SSRF protection (#32) (Yiyu He <<dead_horse@qq.com>>)
 
**fixes**
  * [[`abc33d1`](http://github.com/eggjs/egg-security/commit/abc33d176f2ca832eddd42ae5967c25e0f91c97a)] - fix: deprecate ignoreJSON (#30) (Yiyu He <<dead_horse@qq.com>>)
 
**others**
  * [[`4f045a0`](http://github.com/eggjs/egg-security/commit/4f045a05da0db6c03f3578ee13aff3721f3ceec2)] - deps: add missing dependencies ip (dead-horse <<dead_horse@qq.com>>)
 
2.1.0 / 2018-03-14
==================
 
**features**
  * [[`97f372c`](http://github.com/eggjs/egg-security/commit/97f372c275cb3db99d4bdd86b19583464cdce4e3)] - feat: add RefererPolicy support (#27) (Adams <<jtyjty99999@126.com>>)
 
**others**
  * [[`76bd83f`](http://github.com/eggjs/egg-security/commit/76bd83fbe96e7e81a3a0a61d182c5d7e480c7856)] - chore:bump to 2.0.1 (jtyjty99999 <<jtyjty99999@126.com>>),
 
2.0.1 / 2018-03-14
==================
 
  * fix: absolute path detect should ignore evil path (#28)
 
2.0.0 / 2017-11-10
==================
 
**others**
  * [[`0ec7d2f`](http://github.com/eggjs/egg-security/commit/0ec7d2f5af03c31623b9286125d74652ba596b8b)] - refactor: use async function and support egg@2 (#25) (Yiyu He <<dead_horse@qq.com>>)
 
1.12.1 / 2017-08-03
==================
 
**others**
  * [[`870a7e2`](http://github.com/eggjs/egg-security/commit/870a7e2d26ad622a035e70565a9ca6830465326f)] - fix(csrf): ignore json request even body not exist (#23) (Yiyu He <<dead-horse@users.noreply.github.com>>)
 
1.12.0 / 2017-07-19
==================
 
  * feat: make session plugin optional (#22)
 
1.11.0 / 2017-06-19
==================
 
  * feat: add global path blocking to avoid directory traversal attack (#19)
 
1.10.2 / 2017-06-14
==================
 
  * fix: should not assert csrf when path match ignore (#20)
 
1.10.1 / 2017-06-04
===================
 
  * docs: fix License url (#18)
 
1.10.0 / 2017-05-09
==================
 
  * feat: config.security.csrf.cookieDomain can be function (#17)
 
1.9.0 / 2017-03-28
==================
 
  * feat: use egg-path-matching to support fn (#15)
 
1.8.0 / 2017-03-07
==================
 
  * feat:support muiltiple query/body key to valid csrf token (#14)
 
1.7.0 / 2017-03-07
==================
 
  * feat: add ctx.rotateCsrfToken (#13)
 
1.6.0 / 2017-02-20
==================
 
  * refactor: add csrf faq url to error msg in local env (#12)
 
1.5.0 / 2017-02-17
==================
 
  * feat: surl support protocol whitelist (#11)
 
1.4.0 / 2017-01-22
==================
 
  * refactor: rewrite csrf (#10)
 
1.3.0 / 2016-12-28
==================
 
  * feat: support hash link in shtml (#7)
  * test: fix test (#8)
 
1.2.1 / 2016-09-01
==================
 
  * fix: make sure every middleware has name (#6)
 
1.2.0 / 2016-08-31
==================
 
  * feat: disable hsts for default (#5)
 
1.1.0 / 2016-08-31
==================
 
  * refactor: remove ctoken, csrf check all post/put/.. requests (#4)
 
1.0.3 / 2016-08-30
==================
 
  * fix: lower case header will get better performance (#3)
 
1.0.2 / 2016-08-29
==================
 
  * refactor: use setRawHeader
 
1.0.1 / 2016-08-21
==================
 
  * First version