(change): Client security
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user