From 0c00b9ab06d2d5279a9d73f88cab5ea5905d5fca Mon Sep 17 00:00:00 2001 From: Esraa Date: Wed, 26 Jul 2023 19:38:28 +0300 Subject: [PATCH] Allow CORS as BIP 78 specifies (#88) * move header to server definition * Allow CORS as BIP 78 specs --------- Co-authored-by: DanGould --- payjoin-cli/src/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/payjoin-cli/src/app.rs b/payjoin-cli/src/app.rs index 34665b9e..5dec4d5e 100644 --- a/payjoin-cli/src/app.rs +++ b/payjoin-cli/src/app.rs @@ -200,6 +200,7 @@ impl App { .unwrap_or_else(|err_resp| err_resp), _ => Response::empty_404(), } + .with_additional_header("Access-Control-Allow-Origin", "*") } fn handle_get_bip21(&self, amount: Option) -> Result {