Skip to content
Snippets Groups Projects
Unverified Commit 00b362b4 authored by Timo Kösters's avatar Timo Kösters
Browse files

fix: cors warning

parent b6b27b66
No related branches found
No related tags found
No related merge requests found
use crate::{database::DatabaseGuard, Error, utils, Result, Ruma};
use ruma::api::client::{typing::create_typing_event, error::ErrorKind};
use crate::{database::DatabaseGuard, utils, Error, Result, Ruma};
use ruma::api::client::{error::ErrorKind, typing::create_typing_event};
/// # `PUT /_matrix/client/r0/rooms/{roomId}/typing/{userId}`
///
......
......@@ -141,7 +141,7 @@ async fn run_server(config: &Config, db: Arc<RwLock<Database>>) -> io::Result<()
.compression()
.layer(
CorsLayer::new()
.allow_origin(cors::any())
.allow_origin(cors::Any)
.allow_methods([
Method::GET,
Method::POST,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment