Skip to content

Commit

Permalink
Update axios.js
Browse files Browse the repository at this point in the history
"To migrate from the old withCredential behavior (<v1.6.0), you should now use withXSRFToken along with withCredential."

https://github.com/axios/axios/releases/tag/v1.6.2
  • Loading branch information
andriesreitsma authored Nov 20, 2023
1 parent 456ed71 commit cd92a32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const axios = Axios.create({
'X-Requested-With': 'XMLHttpRequest',
},
withCredentials: true,
withXSRFToken: true
})

export default axios

0 comments on commit cd92a32

Please sign in to comment.