1 2 /// Represents CORS (Cross Origin Resource Sharing) setting for an HTML element. 3 /// 4 /// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) 5 // https://html.spec.whatwg.org/#cors-settings-attribute 6 #[derive(Clone, Copy, Debug, Eq, PartialEq)] 7 pub enum CrossOriginSetting { 8 /// CORS is not used for this element. 9 None, 10 11 /// CORS requests for this element will not have the credentials flag set. 12 Anonymous, 13 14 /// CORS requests for this element will have the credentials flag set; 15 /// this means the request will provide credentials. 16 UseCredentials, 17 } 18