diff --git a/src/protocol.rs b/src/protocol.rs index 149b082..d67b1b1 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -139,6 +139,11 @@ impl Protocol { }); } + headers.push(HttpHeaderEntry { + name: "Access-Control-Allow-Origin".to_string(), + value: "*".to_string(), + }); + // Headers stream.write_all(&b"HTTP/1.1 "[..]).await?; stream.write_all(status.to_string().as_bytes()).await?;