Closed jtsai-dev closed 1 year ago
@yyeiei, checkout the -H
and -rpc-header
arguments. These are always supplied to the server, not shown in the UI, and cannot be overridden. They are perfect for things like credentials. This was added just over a year ago in v1.3.0.
See #163 for more details about these flags and others newly added at the same time.
i have been develop some grpc API which most of them need to be auth when requesting as set the token for header with
Authorization:Bearer xxx
. And i written some examples for request, start the grpcui with commandthe content of request.json almost as follows
when i choose the [Apply] in grpcui's webForm, the default header will be clear, i knew it could be set 'Metadata' in json file, but when the token expired for security reasons, i need to rewrite all the metadata in json file, that is so terrible. so, are there any way to set
-default-header
as default if it is empty in json file, so i can rewrite it only once in start command?