Skip to content

Commit

Permalink
adds debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmullen committed Dec 22, 2022
1 parent e808c23 commit d0648bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cms/src/api/mortarRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ module.exports = function(app) {

const createGeneratorFetch = (req, locale, r, attr) => {
// Generators use <id> as a placeholder. Replace instances of <id> 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) {
Expand Down

0 comments on commit d0648bc

Please sign in to comment.