crossOrigin method
Normal script elements pass minimal information to the window.onerror for scripts which do not pass the standard CORS checks. To allow error logging for sites which use a separate domain for static media, use this attribute. Read more...
Implementation
Script crossOrigin(String mode, {bool? removeIf}) {
if (removeIf != true && node.attrs != null) {
VirtualAttr attr = VirtualAttr('crossorigin', mode);
node.attrs!.add(attr);
}
return this;
}