docs(client): correct gRPC-Web channel comment (fai_platform→chain repo)
Some checks failed
Security / Security check (push) Failing after 1s
Some checks failed
Security / Security check (push) Failing after 1s
Clarify that the hub serves gRPC-Web on the same port and allows any origin on a loopback bind (set security.cors_allowed_origins for a remote bind). gRPC-Web on web targets has worked since the conditional import landed; this only fixes a stale doc reference. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
14c8f38f36
commit
2d87030945
1 changed files with 6 additions and 4 deletions
|
|
@ -1,8 +1,10 @@
|
||||||
// Web channel factory — gRPC-Web over HTTP/1.1.
|
// Web channel factory — gRPC-Web over HTTP/1.1.
|
||||||
// Selected on dart:html targets (Flutter web, Dart-for-web) via
|
// Selected on dart:html targets (Flutter web, Dart-for-web) via the
|
||||||
// the conditional import in hub_client.dart. The hub must be
|
// conditional import in hub_client.dart. The hub serves gRPC-Web on the
|
||||||
// running with `tonic-web` enabled — see fai_platform docs
|
// same port as native gRPC (tonic-web) and, on a loopback bind, allows
|
||||||
// architecture/protocol-surfaces.md.
|
// any browser origin (CORS); for a remote bind set
|
||||||
|
// `security.cors_allowed_origins`. See the chain repo's
|
||||||
|
// docs/architecture/protocol-surfaces.md.
|
||||||
|
|
||||||
import 'package:grpc/grpc_connection_interface.dart';
|
import 'package:grpc/grpc_connection_interface.dart';
|
||||||
import 'package:grpc/grpc_web.dart';
|
import 'package:grpc/grpc_web.dart';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue