Skip to content

Commit

Permalink
nginx example Expose-Headers add Grpc-Message,Grpc-Status
Browse files Browse the repository at this point in the history
  • Loading branch information
zsluedem authored and stanley-cheung committed Oct 21, 2019
1 parent c22f574 commit 1c2a0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/grpc/gateway/examples/echo/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ http {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Transfer-Encoding,Custom-Header-1,X-Accept-Content-Transfer-Encoding,X-Accept-Response-Streaming,X-User-Agent,X-Grpc-Web';
add_header 'Access-Control-Expose-Headers' 'Content-Transfer-Encoding';
add_header 'Access-Control-Expose-Headers' 'Content-Transfer-Encoding,Grpc-Message,Grpc-Status';
}
}
}
Expand Down

0 comments on commit 1c2a0b7

Please sign in to comment.