apache / apisix-go-plugin-runner

Go Plugin Runner for APISIX
https://apisix.apache.org/
Apache License 2.0
173 stars 68 forks source link

Cannot setting response header and proxy to backend at the same time in go plugin #62

Closed jthann closed 2 years ago

jthann commented 2 years ago

Issue description

I am developing a sso login plugin using apisix-go-plugin-runner. After setting response headers like cookies, the response will just return to client, what I expect is setting cookies in response header and sending request to backend service at the same time. Can anyone help solving this problem?

Environment

spacewander commented 2 years ago

Not support yet.

spacewander commented 2 years ago

Maybe we can implement it in the 0.3.0, which is planned to release in March?

rampagecong commented 2 years ago

Think you!

spacewander commented 2 years ago

Already done.

jthann commented 2 years ago

The issue is still not resolved,The new version 0.3.0 released just lost response headers @spacewander

spacewander commented 2 years ago

You need to use APISIX 2.13.0, see https://github.com/apache/apisix/pull/6426