You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
X-XSRF-TOKEN header automatic generation for trusted hosts #6035
Is your feature request related to a problem? Please describe.
I always get frustrated when I need to create a interceptor to populate the X-XSRF-TOKEN header based on the value of the XSRF-TOKEN cookie, and then send the request to a trusted host.
Describe the solution you'd like
I believe it's possible to introduce a parameter in the Axios default settings where we can store a list of trusted hosts.
Moreover, may be we need to have an obvious switcher to have that automation or not. Some systems may experience difficulties when facing the unexpected header in the request.
Thanks for the issue, we are adding this as a potential feature to a mega-feature issue with many feature requests please see the motivation for doing this:
Activity
Create Token.js
jasonsaayman commentedon Aug 1, 2025
Thanks for the issue, we are adding this as a potential feature to a mega-feature issue with many feature requests please see the motivation for doing this:
#6983
And the mega-feature issue here:
#6984