I use ordinary html pages to load data through axios. After logging in to login.html, get the token. on the server side. This token. should be carried on the requested header of all subsequent pages.
after logging in successfully, I set axios.defaults.headers.common ["Authorization"] = "AUTH_TOKEN" in login.html;
but when it comes to other pages, the Authorization of axios"s header is undefined,. What should I do to ensure that all requests are automatically accompanied by this token?