aboutsummaryrefslogtreecommitdiffstats
path: root/LICENSE.txt
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2023-02-01 13:40:55 +0100
committerGitHub <noreply@github.com>2023-02-01 13:40:55 +0100
commit6d1364431b63b0d3bbe1c5fd604131f9db453396 (patch)
tree9410a7891baaf2bf3296eca08aba9d3f2fc51d9c /LICENSE.txt
parentb02a257f98688aa890e06a85672cd1a54c3ffa3a (diff)
downloadjquery-6d1364431b63b0d3bbe1c5fd604131f9db453396.tar.gz
jquery-6d1364431b63b0d3bbe1c5fd604131f9db453396.zip
Ajax: Support `headers` for script transport even when cross-domain
The AJAX script transport has two versions: XHR + `jQuery.globalEval` or appending a script tag (note that `jQuery.globalEval` also appends a script tag now, but inline). The former cannot support the `headers` option which has so far not been taken into account. For jQuery 3.x, the main consequence was the option not being respected for cross-domain requests. Since in 4.x we use the latter way more often, the option was being ignored in more cases. The transport now checks whether the `headers` option is specified and uses the XHR way unless `scriptAttrs` are specified as well. Fixes gh-5142 Closes gh-5193
Diffstat (limited to 'LICENSE.txt')
0 files changed, 0 insertions, 0 deletions