Baoyuantop commented on issue #12195: URL: https://github.com/apache/apisix/issues/12195#issuecomment-2857494255
I used the admin api for configuration: ``` { "uri": "/*", "methods": [ "GET" ], "upstream": { "nodes": { "httpbin.org:80": 1 } }, "plugins": { "response-rewrite": { "headers": { "set": { "Alt-Svc": "h2=\"example.com:443\"; ma=86400" } } } } } ``` ``` curl -i 127.0.0.1:9080/get HTTP/1.1 200 OK Content-Type: application/json Content-Length: 303 Connection: keep-alive Date: Wed, 07 May 2025 07:57:27 GMT Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Server: APISIX/3.12.0 Alt-Svc: h2="example.com:443"; ma=86400 { "args": {}, "headers": { "Accept": "*/*", "Host": "127.0.0.1", "User-Agent": "curl/8.7.1", "X-Amzn-Trace-Id": "Root=1-681b1266-1fc2c422049856b51be1d1ed", "X-Forwarded-Host": "127.0.0.1" }, "url": "http://127.0.0.1/get" } ``` -- 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