$ docker-compose up -d
$ # Open browser, point to: https://ok.local:8000 (see Tips below), or
$ curl 'https://ok.local:8080/helloworld.Greeter/SayHello' \
-H 'Accept: application/grpc-web-text' \
-H 'X-User-Agent: grpc-web-javascript/0.1' \
-H 'X-Grpc-Web: 1' \
-H 'Content-Type: application/grpc-web-text' \
-H 'Origin: http://localhost:8000' \
--data-binary 'AAAAAAcKBVdvcmxk' \
--compressed \
--verbose \
--insecure
$ # Kill the backend, docker ps then docker kill <backend pid>
$ curl 'https://ok.local:8080/helloworld.Greeter/SayHello'
Visiting https://ok.local:8000 surely triggers: "This connection is not private" for Safari and NET::ERR_CERT_INVALID
for Chrome.
For Safari you can force to visit the website. While in Chrome you can type the magic word: badidea or thisisunsafe in the page.
Add ok.local
entry in your /etc/hosts
.
127.0.0.1 ok.local