diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2021-01-26 15:58:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 15:58:29 +0100 |
commit | 025da4dd343e6734f3d3c1b4785b1548498115d8 (patch) | |
tree | 6c5d93a976296645953818d7a922a5531827be12 /CONTRIBUTING.md | |
parent | a32cf6324f8f2190e66a687e94be9687ebf840b7 (diff) | |
download | jquery-025da4dd343e6734f3d3c1b4785b1548498115d8.tar.gz jquery-025da4dd343e6734f3d3c1b4785b1548498115d8.zip |
Ajax: Don't auto-execute scripts unless dataType provided
PR gh-2588 made jQuery stop auto-execute cross-domain scripts unless
`dataType: "script"` was explicitly provided; this change landed in jQuery
3.0.0. This change extends that logic same-domain scripts as well.
After this change, to request a script under a provided URL to be evaluated,
you need to provide `dataType: "script` in `jQuery.ajax` options or to use
`jQuery.getScript`.
Fixes gh-4822
Closes gh-4825
Ref gh-2432
Ref gh-2588
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions