crossOrigin method

Video crossOrigin(
  1. String mode, {
  2. bool? removeIf,
})

This attribute indicates whether to use CORS to fetch the related video. Read more...

Implementation

Video crossOrigin(String mode, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('crossorigin', mode);
    node.attrs!.add(attr);
  }
  return this;
}