Skip to content

Commit

Permalink
Allow CORS as BIP 78 specifies (#88)
Browse files Browse the repository at this point in the history
* move header to server definition

* Allow CORS as BIP 78 specs

---------

Co-authored-by: DanGould <d@ngould.dev>
  • Loading branch information
jbesraa and DanGould authored Jul 26, 2023
1 parent 5948911 commit 0c00b9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions payjoin-cli/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Amount>) -> Result<Response, Error> {
Expand Down

0 comments on commit 0c00b9a

Please sign in to comment.