fix ngaccount in release

Niko PLP 1 year ago
parent e57eae4396
commit 6559f45539
  1. 5
      ngaccount/src/main.rs

@ -243,7 +243,7 @@ async fn main() -> anyhow::Result<()> {
ip,
port,
peer_id,
domain,
domain: domain.clone(),
});
// GET /api/v1/register/ca with the same ?ca= query param => 201 CREATED
@ -262,7 +262,8 @@ async fn main() -> anyhow::Result<()> {
#[cfg(not(debug_assertions))]
{
cors = cors.allow_origin(format!("https://{}", domain));
let origin = format!("https://{}", domain);
cors = cors.allow_origin(origin.as_str());
}
#[cfg(debug_assertions)]
{

Loading…
Cancel
Save