CORSRule.fromXml constructor
CORSRule.fromXml(
- XmlElement? xml
Implementation
CORSRule.fromXml(XmlElement? xml) {
allowedHeaders = getProp(xml, 'AllowedHeaders')?.innerText;
allowedMethods = getProp(xml, 'AllowedMethods')?.innerText;
allowedOrigins = getProp(xml, 'AllowedOrigins')?.innerText;
exposeHeaders = getProp(xml, 'ExposeHeaders')?.innerText;
maxAgeSeconds = int.tryParse(getProp(xml, 'MaxAgeSeconds')!.innerText);
}