feat(site): forward optional access_key from URL into site_domain search

This commit is contained in:
Scott Idem
2026-03-31 13:35:09 -04:00
parent aa5ba8c9c6
commit 84dc3dd158
2 changed files with 26 additions and 7 deletions

View File

@@ -119,6 +119,8 @@ export async function load({ fetch, params, parent, route, url }) {
};
const fqdn = url.host;
// Optional access key provided via URL `?key=...` to support restricted site domains
const access_key = url.searchParams.get('key') || undefined;
let result: any = null;
let api_error = false;
@@ -272,7 +274,8 @@ export async function load({ fetch, params, parent, route, url }) {
api_cfg: bootstrap_api_cfg,
fqdn,
view: 'base',
log_lvl
log_lvl,
access_key
});
if (log_lvl)
console.log(
@@ -296,7 +299,8 @@ export async function load({ fetch, params, parent, route, url }) {
api_cfg: ae_api_init,
fqdn,
view: 'base',
log_lvl: 0
log_lvl: 0,
access_key
});
}