fix ngaccount in release

pull/19/head
Niko PLP 1 year ago
parent bf958123ff
commit 600560a615
  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