blob: 368138bfa1d80a556c7710af1ba8a47151efbc76 [file] [log] [blame]
// OPTIONS: -base-https
if (self.importScripts) {
importScripts('../resources/fetch-test-helpers.js');
}
var BASE_URL =
'http://example.test:8000/serviceworker/resources/fetch-access-control.php?ACAOrigin=*&label=';
var HTTPS_BASE_URL =
'https://127.0.0.1:8443/serviceworker/resources/fetch-access-control.php?ACAOrigin=*&label=';
var HTTPS_OTHER_BASE_URL =
'https://localhost:8443/serviceworker/resources/fetch-access-control.php?ACAOrigin=*&label=';
var REDIRECT_URL =
'http://example.test:8000/serviceworker/resources/redirect.php?ACAOrigin=*&Redirect=';
var HTTPS_REDIRECT_URL =
'https://127.0.0.1:8443/serviceworker/resources/redirect.php?ACAOrigin=*&Redirect=';
var HTTPS_OTHER_REDIRECT_URL =
'https://localhost:8443/serviceworker/resources/redirect.php?ACAOrigin=*&Redirect=';
testBlockMixedContent('same-origin');
testBlockMixedContent('cors');
done();