This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new 42e424c feat: add CSRF in PluginHub (#853)
42e424c is described below
commit 42e424ccda62f9e3d89835acca87a6442f054121
Author: Baoyuan <[email protected]>
AuthorDate: Mon Jan 24 10:44:48 2022 +0800
feat: add CSRF in PluginHub (#853)
---
website/static/data/plugins.json | 5 +++++
website/static/js/plugin-icon.js | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/website/static/data/plugins.json b/website/static/data/plugins.json
index 8491d77..9ab7328 100644
--- a/website/static/data/plugins.json
+++ b/website/static/data/plugins.json
@@ -62,6 +62,11 @@
{
"name": "uri-blocker",
"description": "The plugin helps to intercept user requests"
+ },
+ {
+ "name": "CSRF",
+ "description": "Based on the Double Submit Cookie way, protect your
API from CSRF attacks",
+ "beta": true
}
]
},
diff --git a/website/static/js/plugin-icon.js b/website/static/js/plugin-icon.js
index 8833341..186675d 100644
--- a/website/static/js/plugin-icon.js
+++ b/website/static/js/plugin-icon.js
@@ -31,7 +31,7 @@
i,
p,
v =
- '<svg><symbol id="iconbatch-requests" viewBox="0 0 1063 1024"><path
d="M938.56247 675.50226l113.992758 57.029614c14.623439 7.311719 14.623439
28.181558 0 35.493277L549.521516 1019.603986a39.738386 39.738386 0 0
1-35.493277 0L10.994526 768.025151a19.863804 19.863804 0 0 1-10.928056-17.74574
19.870989 19.870989 0 0 1 10.928056-17.747537l114.059228-57.029614 353.412941
176.73701c33.567439 16.750484 73.115396 16.750484 106.616365
0l353.41294-176.803481 0.06647 0.066471zM514.028239 4.18 [...]
+ '<svg><symbol id="iconbatch-requests" viewBox="0 0 1063 1024"><path
d="M938.56247 675.50226l113.992758 57.029614c14.623439 7.311719 14.623439
28.181558 0 35.493277L549.521516 1019.603986a39.738386 39.738386 0 0
1-35.493277 0L10.994526 768.025151a19.863804 19.863804 0 0 1-10.928056-17.74574
19.870989 19.870989 0 0 1 10.928056-17.747537l114.059228-57.029614 353.412941
176.73701c33.567439 16.750484 73.115396 16.750484 106.616365
0l353.41294-176.803481 0.06647 0.066471zM514.028239 4.18 [...]
z = (z = document.getElementsByTagName('script'))[z.length -
1].getAttribute('data-injectcss');
if (z && !l.__iconfont__svg__cssinject__) {
l.__iconfont__svg__cssinject__ = !0;