Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/strapi/lib/middlewares/xss/index.js
Назад
'use strict'; const convert = require('koa-convert'); const { xssProtection } = require('koa-lusca'); module.exports = strapi => { return { initialize() { const defaults = require('./defaults.json'); strapi.app.use(async (ctx, next) => { if (ctx.request.admin) { return await convert( xssProtection({ enabled: true, mode: defaults.xss.mode, }) )(ctx, next); } const xssConfig = strapi.config.get('middleware.settings.xss'); if (xssConfig.enabled) { return await convert(xssProtection(xssConfig))(ctx, next); } await next(); }); }, }; };
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка