fix: cors

This commit is contained in:
2022-08-01 10:05:11 +08:00
parent 7016718673
commit 241034ca9b

View File

@@ -86,7 +86,11 @@ async fn main() -> Result<(), rocket::Error> {
) )
.mount( .mount(
"/_api/v2", "/_api/v2",
routes![api::comment::add_comment, api::upload::local_upload,], routes![
api::comment::add_comment,
api::upload::local_upload,
cors::options_handler,
],
) )
.mount( .mount(
"/_login", "/_login",