@ima/plugin-self-xss
v4.0.2
Published
The plugin is trying to mitigate Self-XSS security attack by sending simple message into console
Downloads
74
Readme
@ima/plugin-self-xss
The IMA plugin is trying to mitigate Self-XSS security attack by sending simple message into console.
Installation
npm install @ima/plugin-self-xss --save
Add language paths to ima.config.js
using the languages
config settings. Follwing settings should cover all @ima/
plugins:
// ./ima.config.js
module.exports = {
languages: {
cs: [
'./node_modules/@ima/**/*CS.json',
'./app/**/*CS.json',
],
en: [
'./node_modules/@ima/**/*EN.json',
'./app/**/*EN.json',
],
},
};
// ./app/config/services.js
import { SelfXSS } from '@ima/plugin-self-xss';
export default (ns, oc, config) => {
// ...
oc.get(SelfXSS).init();
};