feat: Improve error handling in ContactPage and update Axios headers management

This commit is contained in:
Your Name
2026-03-18 00:07:18 +02:00
parent a2824b2132
commit ca20413667
2 changed files with 6 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ function shouldAttachCsrfToken(config: InternalAxiosRequestConfig): boolean {
function setRequestHeader(config: InternalAxiosRequestConfig, key: string, value: string) {
if (!config.headers) {
config.headers = {};
config.headers = new axios.AxiosHeaders();
}
if (typeof (config.headers as { set?: (header: string, headerValue: string) => void }).set === 'function') {