Affanmir opened a new issue, #10573:
URL: https://github.com/apache/apisix/issues/10573

   ### Current Behavior
   
   When i use the grpc-web plugin and cors plugin to communicate from my 
fronted to my backend, the response I receive an error missing trailers. I've 
tried the same thing using envoy and it works. There seems to be some 
misconfiguration is the response body which does not allow the response to
   
   ### Expected Behavior
   
   
   
   Envoy Response: (CORRECT AND DOES NOT CAUSE ISSUE)
   
   Hello! Mohsin Javed� grpc-status:0
   grpc-message:OK
   
   
   Headers:
   
   HTTP/1.1 200 OK
   content-type: application/grpc-web+proto
   grpc-accept-encoding: identity,deflate,gzip
   grpc-encoding: identity
   date: Fri, 24 Nov 2023 06:04:45 GMT
   x-envoy-upstream-service-time: 12
   access-control-allow-origin: http://localhost:58653/
   access-control-expose-headers: custom-header-1,grpc-status,grpc-message
   server: envoy
   transfer-encoding: chunked
   
   
   
   
   API SIX Response:: (INCORRECT 
   ![Screenshot 2023-11-28 at 10 52 01 
AM](https://github.com/apache/apisix/assets/54717435/cb92ca3f-9669-49e0-8b3f-cd4d5d7dcc95)
   AND CAUSES ISSUE MISSING TRAILERS)
   
   Hello! World
   
   
   Headers:
   HTTP/1.1 200 OK
   Date: Fri, 24 Nov 2023 06:13:48 GMT
   Content-Type: application/grpc-web+proto
   Transfer-Encoding: chunked
   Connection: keep-alive
   grpc-accept-encoding: identity,deflate,gzip
   grpc-encoding: identity
   Server: APISIX/3.6.0
   Access-Control-Allow-Origin: *
   Access-Control-Allow-Methods: *
   Access-Control-Max-Age: 5
   Access-Control-Expose-Headers: *
   Access-Control-Allow-Headers: *
   
   ### Error Logs
   
   <img width="538" alt="Screenshot 2023-11-30 at 7 05 22 PM" 
src="https://github.com/apache/apisix/assets/54717435/8c10efce-295a-47a8-9315-aae70d5935c4";>
   
   
   ### Steps to Reproduce
   
   enable grpc-web and cors plugin on a route that communicates from any 
frontend / backend service that implemented a grpc service using a proto 
definition.
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to