File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
js/src/test/scala/com/thirdparty/defs/props
shared/src/main/scala/com/raquo/domtypes/defs/reflectedAttrs Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -713,4 +713,19 @@ trait Props {
713
713
lazy val xmlns : Prop [String , String ] = stringProp(" xmlns" )
714
714
715
715
716
+ /**
717
+ * This attribute specifies how the browser should handle cross-origin
718
+ * requests for the associated resource. It controls whether the resource can
719
+ * be loaded when requested from a different domain, and how to handle potential
720
+ * security issues, like CORS (Cross-Origin Resource Sharing) policies.
721
+ * The value of this attribute determines whether the browser will allow or
722
+ * block loading of the resource, helping to enhance web security.
723
+ *
724
+ * Allowed values: "anonymous" | "use-credentials" | "" (same as "anonymous")
725
+ *
726
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin
727
+ */
728
+ lazy val crossOrigin : Prop [String , String ] = stringProp(" crossOrigin" )
729
+
730
+
716
731
}
Original file line number Diff line number Diff line change @@ -1105,6 +1105,29 @@ object ReflectedHtmlAttrDefs {
1105
1105
docUrls = Nil ,
1106
1106
),
1107
1107
1108
+ ReflectedHtmlAttrDef (
1109
+ scalaName = " crossOrigin" ,
1110
+ domAttrName = " crossorigin" ,
1111
+ domPropName = " crossOrigin" ,
1112
+ scalaValueType = " String" ,
1113
+ domPropValueType = " String" ,
1114
+ attrCodec = " StringAsIs" ,
1115
+ propCodec = " StringAsIs" ,
1116
+ commentLines = List (
1117
+ " This attribute specifies how the browser should handle cross-origin" ,
1118
+ " requests for the associated resource. It controls whether the resource can" ,
1119
+ " be loaded when requested from a different domain, and how to handle potential" ,
1120
+ " security issues, like CORS (Cross-Origin Resource Sharing) policies." ,
1121
+ " The value of this attribute determines whether the browser will allow or" ,
1122
+ " block loading of the resource, helping to enhance web security." ,
1123
+ " " ,
1124
+ """ Allowed values: "anonymous" | "use-credentials" | "" (same as "anonymous") """
1125
+ ),
1126
+ docUrls = List (
1127
+ " https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin"
1128
+ ),
1129
+ ),
1130
+
1108
1131
)
1109
1132
1110
1133
}
You can’t perform that action at this time.
0 commit comments