crossOrigin method

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

This attribute indicates whether CORS must be used when fetching the resource. Read more...

Implementation

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