Skip to content

Commit

Permalink
Define protocol for allowed origin
Browse files Browse the repository at this point in the history
  • Loading branch information
ebma committed Sep 12, 2024
1 parent 2da27ae commit 2c4f9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dia-batching-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
let port = args.port;
println!("Running dia-batching-server on port {port}... (Press CTRL+C to quit)");
HttpServer::new(move || {
let cors = Cors::default().allowed_origin("portal.pendulumchain.org")
let cors = Cors::default().allowed_origin("https://portal.pendulumchain.org")
.allowed_methods(vec!["POST"])
.allowed_headers(vec!["Content-Type"])
.max_age(3600);
Expand Down

0 comments on commit 2c4f9b3

Please sign in to comment.