Allow unauthenticated access to /wasm/ in dev mode
This commit is contained in:
@@ -7,8 +7,12 @@ use dioxus::prelude::*;
|
|||||||
|
|
||||||
use crate::server::auth::AuthSession;
|
use crate::server::auth::AuthSession;
|
||||||
|
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
const ALLOWED_PATH_PREFIX: [&str; 1] = ["/assets/"];
|
const ALLOWED_PATH_PREFIX: [&str; 1] = ["/assets/"];
|
||||||
|
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
|
const ALLOWED_PATH_PREFIX: [&str; 2] = ["/assets/", "/wasm/"];
|
||||||
|
|
||||||
const ALLOWED_PATHS: [&str; 5] = [
|
const ALLOWED_PATHS: [&str; 5] = [
|
||||||
"/login",
|
"/login",
|
||||||
"/signup",
|
"/signup",
|
||||||
|
|||||||
Reference in New Issue
Block a user