publicOrigin property

Uri? publicOrigin
final

Fixed external origin accepted by RPC when deployed behind a proxy.

When set, forwarded headers and the internal request origin cannot change the expected origin. Without this setting, adapter URI semantics remain in effect; the IO adapter uses Dart's requestedUri, which reads X-Forwarded-Proto/Host without checking the sender.

Implementation

final Uri? publicOrigin;