fix: cors warning
This commit is contained in:
parent
b6b27b66c8
commit
00b362b43b
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
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,
|
||||
|
|
Loading…
Add table
Reference in a new issue