Browse Source

main: options???

feature/pictrs-v2.5
eiknat 2 years ago
parent
commit
9bcb6aa6ed
  1. 2
      server/src/main.rs

2
server/src/main.rs

@ -100,7 +100,7 @@ async fn main() -> Result<(), LemmyError> {
let cors = Cors::default()
.allowed_origin(&format!("http://{}", "localhost:4444"))
.allowed_origin(&format!("https://{}", Settings::get().hostname))
.allowed_methods(vec!["GET", "POST", "PUT"])
.allowed_methods(vec!["GET", "POST", "PUT", "OPTIONS"])
.allowed_headers(vec![
http::header::CONTENT_TYPE,
http::header::AUTHORIZATION,

Loading…
Cancel
Save