From d28ab6eaa1386ff9ca0fc88cfb648a28f8e4bcc7 Mon Sep 17 00:00:00 2001 From: Duy Do Date: Thu, 22 Sep 2022 18:46:24 +0700 Subject: [PATCH] CORS origin does not end with / (#291) --- actix-cors/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-cors/src/lib.rs b/actix-cors/src/lib.rs index 9e881ceaa..4f343b729 100644 --- a/actix-cors/src/lib.rs +++ b/actix-cors/src/lib.rs @@ -20,7 +20,7 @@ //! async fn main() -> std::io::Result<()> { //! HttpServer::new(|| { //! let cors = Cors::default() -//! .allowed_origin("https://www.rust-lang.org/") +//! .allowed_origin("https://www.rust-lang.org") //! .allowed_origin_fn(|origin, _req_head| { //! origin.as_bytes().ends_with(b".rust-lang.org") //! })