External scripts without the necessary Access-Control-Allow-Origin
header are rejected in karma v1.1.1
#2249
Labels
Access-Control-Allow-Origin
header are rejected in karma v1.1.1
#2249
Expected behavior
External scripts can be loaded regardless of the
Access-Control-Allow-Origin
headers.Actual behavior
External scripts without the necessary
Access-Control-Allow-Origin
header are rejected with:This happens with Karma v1.1.1 when external scripts are served without the necessary
Access-Control-Allow-Origin
header.In Karma v1.1.0 the scripts were loaded. This change in behavior is due to 5690ffe
Sometimes users might not have control over the external scripts they need to include in their test run. An option to turn off the new default behavior might be sensible.
Enviroment Details
karma --version
): v1.1.1crossorigin="anonymous"
The text was updated successfully, but these errors were encountered: