Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
9 lines
231 B
JavaScript
9 lines
231 B
JavaScript
(() => {
|
|
const token = document.querySelector('meta[name="csrf-token"]')?.content;
|
|
window.api = axios.create({
|
|
baseURL: "/api/v1",
|
|
headers: token ? { "X-CSRF-Token": token } : {},
|
|
withCredentials: true,
|
|
});
|
|
})();
|