trustedPlatform property
String?
get
trustedPlatform
The configured platform name used for trusted client-address headers. The platform whose forwarded client-IP headers are trusted.
Implementation
String? get trustedPlatform => _trustedPlatform;
set
trustedPlatform
(String? value)
Sets the platform whose forwarded client-IP headers are trusted.
Implementation
set trustedPlatform(String? value) {
if (!features.enableTrustedPlatform) {
throw StateError(
'Trusted platform not enabled. Enable with EngineFeatures.enableTrustedPlatform',
);
}
_trustedPlatform = value;
}