feat(site): forward optional access_key from URL into site_domain search
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user