You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/03/02 10:00:57 UTC
[apisix] branch master updated: docs: fixed zh/response-rewrite.md format (#6476)
This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 0f9deb9 docs: fixed zh/response-rewrite.md format (#6476)
0f9deb9 is described below
commit 0f9deb90f93990edcaf99802ad3e4d2f76b1a301
Author: Gaoll <lx...@126.com>
AuthorDate: Wed Mar 2 18:00:47 2022 +0800
docs: fixed zh/response-rewrite.md format (#6476)
Co-authored-by: 高亮亮 <gl...@alibaba-inc.com>
---
docs/zh/latest/plugins/response-rewrite.md | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/docs/zh/latest/plugins/response-rewrite.md b/docs/zh/latest/plugins/response-rewrite.md
index a36b542..e39d3d8 100644
--- a/docs/zh/latest/plugins/response-rewrite.md
+++ b/docs/zh/latest/plugins/response-rewrite.md
@@ -23,19 +23,21 @@ title: response-rewrite
## 目录
-- [**response-rewrite**](#response-rewrite)
+- [**简介**](#简介)
- [**配置参数**](#配置参数)
- [**开启插件**](#开启插件)
- [**测试插件**](#测试插件)
- [**禁用插件**](#禁用插件)
- [**注意事项**](#注意事项)
-## response-rewrite
+## 简介
该插件支持修改上游服务或网关本身返回的 body 和 header 信息。
使用场景:
+
1、可以设置 `Access-Control-Allow-*` 等 header 信息,来实现 CORS (跨域资源共享)的功能。
+
2、另外也可以通过配置 status_code 和 header 里面的 Location 来实现重定向,当然如果只是需要重定向功能,最好使用 [redirect](redirect.md) 插件。
## 配置参数