skip to Main Content

generating proto file for reactjs with protoc command show error: 'protoc-gen-js' is not recognized

i want generate a proto file for reactjs this is the commands I tested: protoc --js_out=import_style=commonjs,binary:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:. *.proto protoc -I=. ./data.proto --js_out=import_style=commonjs,binary:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:. and I get below error: 'protoc-gen-js' is not recognized as an internal or external command, operable program…

VIEW QUESTION

Flutter – Envoy + grpc: Request header field x-user-agent is not allowed by Access-Control-Allow-Headers in preflight response

I have this issue: Access to XMLHttpRequest at 'https://example.org:8443/main.MyService/Ping' from origin 'https://example.org' has been blocked by CORS policy: Request header field x-user-agent is not allowed by Access-Control-Allow-Headers in preflight response. My envoy: # Admin settings admin: access_log_path: /tmp/admin_access.log address: socket_address:…

VIEW QUESTION
Back To Top
Search