We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d137740 commit 78352f7Copy full SHA for 78352f7
frontend/src/App.jsx
@@ -73,7 +73,12 @@ function App() {
73
74
useEffect(() => {
75
// Make a GET request to the server to ensure the CSRF cookie is set
76
- api.get('set-csrf-token/');
+ api.get('set-csrf-token/')
77
+ .catch(error => {
78
+ // Error is already handled by the interceptor, so we can
79
+ // just log it or ignore it here
80
+ console.error('CSRF token fetch failed:', error.message);
81
+ });
82
}, []);
83
84
// Apply the dark mode class at the top level based on isDarkMode state
frontend/vite.config.js renamed to frontend/vite.config.mjs
0 commit comments