jquery/test
Michał Gołębiowski-Owczarek 07a8e4a177
Ajax: Avoid CSP errors in the script transport for async requests
Until now, the AJAX script transport only used a script tag to load scripts
for cross-domain requests or ones with `scriptAttrs` set. This commit makes
it also used for all async requests to avoid CSP errors arising from usage
of inline scripts. This also makes `jQuery.getScript` not trigger CSP errors
as it uses the AJAX script transport under the hood.

For sync requests such a change is impossible and that's what `jQuery._evalUrl`
uses. Fixing that is tracked in gh-1895.

The commit also makes other type of requests using the script tag version of the
script transport set its type to "GET", namely async scripts & ones with
`scriptAttrs` set in addition to the existing cross-domain ones.

Fixes gh-3969
Closes gh-4763
2020-08-25 21:28:30 +02:00
..
data Ajax: Avoid CSP errors in the script transport for async requests 2020-08-25 21:28:30 +02:00
integration Event: Fix delegated radio events when arrow keys are used 2015-10-18 13:06:37 -04:00
node_smoke_tests Build: Update jsdom; migrate a test with Symbol polyfill to an iframe test 2019-03-04 18:30:51 +01:00
promises_aplus_adapters Build: Update jsdom; migrate a test with Symbol polyfill to an iframe test 2019-03-04 18:30:51 +01:00
unit Ajax: Avoid CSP errors in the script transport for async requests 2020-08-25 21:28:30 +02:00
.eslintrc.json Build: Enable ESLint one-var rule for var declarations in browser code 2020-03-02 22:25:35 +01:00
delegatetest.html Tests: Change quotes according to style guidelines 2015-10-18 13:17:23 -04:00
hovertest.html Ref #13316: Sync all documents on full vs. minified source. Close gh-1147. 2013-02-07 15:16:28 -05:00
index.html Build: Use the US spelling of "favor" 2020-07-22 16:12:54 +02:00
jquery.js Build: Make dev mode work in Karma again, serve source files from disk 2020-01-08 00:35:55 +01:00
karma.context.html Build: Use the US spelling of "favor" 2020-07-22 16:12:54 +02:00
karma.debug.html Build: Use the US spelling of "favor" 2020-07-22 16:12:54 +02:00
localfile.html Manipulation: Make jQuery.htmlPrefilter an identity function 2020-03-16 21:49:29 +01:00
middleware-mockserver.js Ajax: Avoid CSP errors in the script transport for async requests 2020-08-25 21:28:30 +02:00
networkerror.html Docs: Updated links to https where they are supported. 2016-01-13 13:26:10 -05:00
xhtml.php Added a way to run the test suite as an XHTML page. 2009-01-19 18:14:51 +00:00