From 941e54f67b28bfa8406af05cbc94f09b718708b5 Mon Sep 17 00:00:00 2001 From: Guillaume Hivert Date: Wed, 24 Apr 2024 12:43:53 +0200 Subject: [PATCH] docs: allow origin Signed-off-by: Guillaume Hivert --- src/cors_builder.gleam | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cors_builder.gleam b/src/cors_builder.gleam index 467644e..23f7ea4 100644 --- a/src/cors_builder.gleam +++ b/src/cors_builder.gleam @@ -120,7 +120,9 @@ fn invalid_uri(origin: String) { }) } -/// Allow a specific domain to access your server. +/// Allow a specific domain to access your server. The domain must be a valid +/// URI, conformant to RFC 3986. In case it's not conformant, a warning will be +/// emitted, and Cors won't be changed. /// You can specify multiple domains to access your server. In this case, call /// the function multiple times on `Cors` data. /// ```