Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions front-js/src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,6 @@ export default function Dashboard() {
image="/modules_assets/scapy.svg"
/>
</Grid2>
<Grid2 size={4}>
<Card
title="IPv6"
description="Simplifiez ou étendez une adresse IPv6 avec ce module."
image="/modules_assets/ipv6.svg"
/>
</Grid2>
</Grid2>
</Box>
</>
Expand Down
12 changes: 6 additions & 6 deletions front-js/src/axiosConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import axios from "axios";
const instance = axios.create({
baseURL: "http://127.0.0.1:8000/",
headers: {
"Content-Type": "application/json",
},
"Content-Type": "application/json"
}
});

instance.interceptors.request.use(async (config) => {
// const response = await fetch("/api/config");
// const { commonKey } = await response.json();
config.headers["X-Common-Key"] = "user";
const response = await fetch('/api/config');
const { commonKey } = await response.json();
config.headers["X-Common-Key"] = commonKey;
return config;
});

export default instance;
export default instance;