(change): Client security

This commit is contained in:
dbob16 committed 2026-09-10 17:58:25 -04:00
1 parent a11c313a8e
commit 103f1cf3c4
16 files changed
+177 -115

No files matched your search

@@ -4,7 +4,7 @@
import { tS, bS } from '$lib/client/styles';
let { data } = $props();
let prefixes = $derived(data.prefixes);
let { prefixes, tamClientID } = $derived(data);
let tableData = $state([]);
let currentTimeout = $state();
let lastRefreshed = $state('');
@@ -12,7 +12,7 @@
const loadCounts = async () => {
const rtnData = {};
const res = await fetch('/api/reports/counts');
const res = await fetch('/api/reports/counts', {headers: {'TAM-CLIENT-ID': tamClientID}});
if (res.ok) {
prefixes.forEach((p) => (rtnData[p.prefix] = { ...p }));
const resData = await res.json();