From 2d870309457e281139e1f7c5fc5e2c63e5e51d16 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Thu, 18 Jun 2026 14:40:07 +0200 Subject: [PATCH] =?UTF-8?q?docs(client):=20correct=20gRPC-Web=20channel=20?= =?UTF-8?q?comment=20(fai=5Fplatform=E2=86=92chain=20repo)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/src/channel_factory_web.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/src/channel_factory_web.dart b/lib/src/channel_factory_web.dart index 565f4be..bd00026 100644 --- a/lib/src/channel_factory_web.dart +++ b/lib/src/channel_factory_web.dart @@ -1,8 +1,10 @@ // Web channel factory — gRPC-Web over HTTP/1.1. -// Selected on dart:html targets (Flutter web, Dart-for-web) via -// the conditional import in hub_client.dart. The hub must be -// running with `tonic-web` enabled — see fai_platform docs -// architecture/protocol-surfaces.md. +// Selected on dart:html targets (Flutter web, Dart-for-web) via the +// conditional import in hub_client.dart. The hub serves gRPC-Web on the +// same port as native gRPC (tonic-web) and, on a loopback bind, allows +// 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_web.dart';