zaunist commented on issue #2268:
URL: 
https://github.com/apache/apisix-dashboard/issues/2268#issuecomment-1002371706


   Hi, @foreveryang321. If you want rewrite `header`, you need configure 
`response-rewrite` like this:
   ```
        "headers": {
           "Server": "baidu",
         }
   ```
   I can give you a example configuration:
   ```
   {
     "body": "{\"code\":\"ok\",\"message\":\"new json body\"}",
     "disable": false,
     "headers": {
       "Server": "baidu",
       "X-Server-id": 3,
       "X-Server-status": "on"
     }
   }
   ```
   
![image](https://user-images.githubusercontent.com/38528079/147623172-1d548d96-3a7d-459b-9601-745101180262.png)
   
   test response header:
   
![image](https://user-images.githubusercontent.com/38528079/147623213-1779bc82-0325-4227-9537-addbd458ca83.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to