New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/nelnal/grpc-web-cookie-test--web-and-golang

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/nelnal/grpc-web-cookie-test--web-and-golang

  • v0.0.0-20210122044839-73f59397282a
  • Source
  • Go
  • Socket score

Version published
Created
Source

grpc-web example

grpc-web を以下の条件で使った場合のテスト用に作成。
kui/grpc-web-cookie-test を参考に改変して作成しています。

  • server: go 1.15
  • client: Typescript 4.1
  • envoyproxy API v3

構成

structure

動作確認

# ログを見るために -d を省略して実行
$ docker-compose up --build

$ open http://localhost:8080

開いたページの 'greet' ボタンを押下するとサーバにメッセージが飛びます。

developer tools の console で以下の様に入力すると設定できます。

document.cookie = "key=value"

変更をする場合

Proto ファイルの生成

requirements
生成
$ go get -u google.golang.org/grpc

$ go get -u github.com/golang/protobuf/protoc-gen-go

$ yarn

$ buf generate
(generated)

以下に出力されます。

  • golang: server/
  • web: web/src

FAQs

Package last updated on 22 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc