@ima/plugin-self-xss
TypeScript icon, indicating that this package has built-in type declarations

4.0.2 • Public • Published

@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();
};

Package Sidebar

Install

npm i @ima/plugin-self-xss

Weekly Downloads

0

Version

4.0.2

License

MIT

Unpacked Size

16.7 kB

Total Files

25

Last publish

Collaborators

  • corvidism
  • mjancarik
  • filipoliko
  • matej.marcisovsky
  • jsimck
  • hartja
  • zdenek.lastuvka
  • jan.kucera
  • ondrej.sliva