mirror of
https://github.com/agregarr/agregarr.git
synced 2026-05-12 21:59:11 -05:00
fix(connections): correctly handle CSRF cookie name
This commit is contained in:
@@ -24,6 +24,9 @@ import { IntlProvider } from 'react-intl';
|
||||
import { ToastProvider } from 'react-toast-notifications';
|
||||
import { SWRConfig } from 'swr';
|
||||
|
||||
// Configure axios to use the custom CSRF cookie name set by the server
|
||||
axios.defaults.xsrfCookieName = 'AGREGARR-XSRF-TOKEN';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const loadLocaleData = (locale: AvailableLocale): Promise<any> => {
|
||||
switch (locale) {
|
||||
|
||||
Reference in New Issue
Block a user