...
|
...
|
@@ -5,6 +5,7 @@ |
|
|
*/
|
|
|
|
|
|
'use strict';
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
|
|
module.exports = () => {
|
|
|
return (req, res, next) => {
|
...
|
...
|
@@ -31,6 +32,8 @@ module.exports = () => { |
|
|
res.set('Access-Control-Allow-Origin', '*');
|
|
|
}
|
|
|
|
|
|
res.locals.cartUrl = helpers.urlFormat('/cart/index/index');
|
|
|
|
|
|
next();
|
|
|
};
|
|
|
}; |
...
|
...
|
|