We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ddd80c commit c789750Copy full SHA for c789750
backend/src/main.rs
@@ -52,6 +52,8 @@ async fn main() -> ShuttleActixWeb<impl FnOnce(&mut ServiceConfig) + Send + Clon
52
let config = move |cfg: &mut ServiceConfig| {
53
let cors = Cors::default()
54
.allowed_origin(ENDPOINT.base)
55
+ .allowed_origin("https://wyatt.wtf") // required by cloudflare worker
56
+ .allowed_origin("https://www.wyatt.wtf")
57
.allowed_methods(vec!["GET", "POST"])
58
.allowed_headers(vec![http::header::CONTENT_TYPE])
59
.max_age(3600);
0 commit comments