+3
-1
src/cors_builder.gleam
+3
-1
src/cors_builder.gleam
···
120
120
})
121
121
}
122
122
123
-
/// Allow a specific domain to access your server.
123
+
/// Allow a specific domain to access your server. The domain must be a valid
124
+
/// URI, conformant to RFC 3986. In case it's not conformant, a warning will be
125
+
/// emitted, and Cors won't be changed.
124
126
/// You can specify multiple domains to access your server. In this case, call
125
127
/// the function multiple times on `Cors` data.
126
128
/// ```