addCustomHeader method

Future<bool> addCustomHeader({
  1. required String containerId,
  2. required String headerName,
  3. required String headerValue,
  4. Set<String>? originRules,
})

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • containerId: all platforms
  • headerName: all platforms
  • headerValue: all platforms
  • originRules: all platforms

Use the PlatformContainerController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<bool> addCustomHeader({
  required String containerId,
  required String headerName,
  required String headerValue,
  Set<String>? originRules,
}) => platform.addCustomHeader(
  containerId: containerId,
  headerName: headerName,
  headerValue: headerValue,
  originRules: originRules,
);