upgrade all urls to https

This commit is contained in:
Matt Walsh
2021-09-29 15:34:24 -05:00
parent 6349166dbe
commit fecbfaaf10
3 changed files with 906 additions and 659 deletions

View File

@@ -256,6 +256,8 @@ const utils = (() => {
let corsUrl = _url;
if (params.cors === true) corsUrl = rewriteUrl(_url);
const url = new URL(corsUrl);
// force url to secure
url.protocol = 'https:';
// add parameters if necessary
if (params.data) {
Object.keys(params.data).forEach((key) => {