Skip to content

Commit

Permalink
missing CSRF and fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
asad-rafter committed Jun 12, 2024
1 parent c5149e4 commit 86926ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports.init = function (editor) {
var linkUrlAct = new URLAction('Links-url', currentSite.getID());
editor.configuration.put('breakpointsUrl', URLUtils.abs(act).toString());
editor.configuration.put('linkBuilderUrl', URLUtils.abs(linkUrlAct).toString());
editor.configuration.put('csfr', csrf);
editor.configuration.put('csrf', csrf);
conf.put('type', 'image');
editor.configuration.put('cloudName', cloudinaryApi.data.getCloudName());
editor.configuration.put('cname', cloudinaryApi.data.getCloudinaryCNAME());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var server = require('server');
var LocalServiceRegistry = require('dw/svc/LocalServiceRegistry');
// var csrfProtection = require('*/cartridge/scripts/middleware/csrf');
var csrfProtection = require('*/cartridge/scripts/middleware/csrf');
var constants = require('~/cartridge/experience/utils/cloudinaryPDConstants').cloudinaryPDConstants;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var server = require('server');
var currentSite = require('dw/system/Site').getCurrent();
var utils = require('*/cartridge/experience/utils/utils');

// var csrfProtection = require('*/cartridge/scripts/middleware/csrf');
var csrfProtection = require('*/cartridge/scripts/middleware/csrf');

/**
* Parses the responce from cloudinary
Expand Down

0 comments on commit 86926ce

Please sign in to comment.