fix/correctif-sec #12
Reference in New Issue
Block a user
Delete Branch "fix/correctif-sec"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix/correctif-sec
@@ -164,2 +168,3 @@method: "POST",body: { key }body: { key },headers: apiAuthHeadertu peux créer un fetch global avec apiAuthHeader intégrré automatiquement pour tes deux type de fetch
@@ -69,3 +81,3 @@const data = new Uint8Array(size)const start = performance.now()await fetch('/api/upload', { method: 'POST', body: data })const response = await fetch('/api/upload', withApiAuth({ method: 'POST', body: data }))Idem ici inclure en auto withApiAuth dans un fetch global
@@ -37,2 +37,4 @@runtimeConfig: {apiSecretKey: process.env.API_SECRET_KEY,public: {apiSecretKey: process.env.API_SECRET_KEY || "",runtimeConfig: {
apiSecretKey: process.env.API_SECRET_KEY,
public: {
apiSecretKey: process.env.API_SECRET_KEY || "",
PK il y est deux fois
@@ -121,2 +123,3 @@const fetchLatestBackup = async (folder: string) => {const files = await $fetch<string[]>(`/api/backups?folder=${encodeURIComponent(folder)}`)const files = await $fetch<string[]>(`/api/backups?folder=${encodeURIComponent(folder)}`, {headers: apiAuthHeaderici fetch global et les autres endroit