fix: cors
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user