2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

chore(release): v1.6.0 (#6031)

Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-10-27 00:14:41 +03:00
committed by GitHub
parent 9917e67cbb
commit f7adacdbaa
17 changed files with 214 additions and 38 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
// Axios v1.5.1 Copyright (c) 2023 Matt Zabriskie and contributors
// Axios v1.6.0 Copyright (c) 2023 Matt Zabriskie and contributors
'use strict';
function bind(fn, thisArg) {
@@ -2342,8 +2342,8 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
// Specifically not if we're in a web worker, or react-native.
if (platform.isStandardBrowserEnv) {
// Add xsrf header
const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))
&& config.xsrfCookieName && cookies.read(config.xsrfCookieName);
// regarding CVE-2023-45857 config.withCredentials condition was removed temporarily
const xsrfValue = isURLSameOrigin(fullPath) && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
if (xsrfValue) {
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
@@ -2658,7 +2658,7 @@ function mergeConfig(config1, config2) {
return config;
}
const VERSION = "1.5.1";
const VERSION = "1.6.0";
const validators$1 = {};
+1 -1
View File
File diff suppressed because one or more lines are too long