diff --git a/packages/cms/src/api/mortarRoute.js b/packages/cms/src/api/mortarRoute.js index 86d5c581b..686eb31ec 100644 --- a/packages/cms/src/api/mortarRoute.js +++ b/packages/cms/src/api/mortarRoute.js @@ -232,6 +232,9 @@ module.exports = function(app) { const createGeneratorFetch = (req, locale, r, attr) => { // Generators use as a placeholder. Replace instances of with the provided id from the URL + console.log("protocol", req.protocol); + console.log("encrypted", req.connection.encrypted); + console.log("secure", req.secure); const origin = `${ req.protocol }://${ req.headers.host }`; let url = urlSwap(r, {...req.params, ...cache, ...attr, ...canonVars, locale}); if (url.indexOf("http") !== 0) {