[GitHub] [apisix] juzhiyuan commented on a change in pull request #5727: feat: add CSRF plugin

2021-12-30 Thread GitBox
juzhiyuan commented on a change in pull request #5727: URL: https://github.com/apache/apisix/pull/5727#discussion_r776939023 ## File path: docs/zh/latest/plugins/csrf.md ## @@ -65,7 +65,13 @@ curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335 θΏ™

[GitHub] [apisix] juzhiyuan commented on a change in pull request #5727: feat: add CSRF plugin

2021-12-07 Thread GitBox
juzhiyuan commented on a change in pull request #5727: URL: https://github.com/apache/apisix/pull/5727#discussion_r763978097 ## File path: apisix/plugins/csrf.lua ## @@ -0,0 +1,150 @@ +local core= require("apisix.core") +local ngx = ngx +local plugin_name = "csr