COSCORSConfiguration.fromXml constructor
COSCORSConfiguration.fromXml(
- XmlElement? xml
Implementation
factory COSCORSConfiguration.fromXml(XmlElement? xml) {
return COSCORSConfiguration(
corsRules: xml
?.findElements('CORSRule')
.map((XmlElement xmlElement) => COSCORSRule.fromXml(xmlElement))
.toList() ??
<COSCORSRule>[],
);
}