Skip to content

Commit

Permalink
fix: withXSRFToken in axios
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Apr 19, 2024
1 parent 06c5da2 commit 967da6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { EventsPlugin } from "./eventBus/events";

const app = createApp(App);

axios.defaults.withXSRFToken = true;
axios.defaults.withCredentials = true;
// Set accept header
axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
Expand Down

0 comments on commit 967da6a

Please sign in to comment.