upgrade all urls to https
This commit is contained in:
parent
6349166dbe
commit
fecbfaaf10
|
@ -73,7 +73,8 @@ const htmlSources = [
|
|||
'views/*.ejs',
|
||||
];
|
||||
gulp.task('compress_html', () => {
|
||||
const { version } = JSON.parse(fs.readFileSync('./package.json'));
|
||||
// eslint-disable-next-line global-require
|
||||
const { version } = require('../package.json');
|
||||
return gulp.src(htmlSources)
|
||||
.pipe(ejs({
|
||||
production: version,
|
||||
|
|
1560
package-lock.json
generated
1560
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue