Socket
Socket
Sign inDemoInstall

@ima/plugin-self-xss

Package Overview
Dependencies
87
Maintainers
9
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ima/plugin-self-xss

The plugin is trying to mitigate Self-XSS security attack by sending simple message into console


Version published
Weekly downloads
3
increased by50%
Maintainers
9
Install size
16.3 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 19 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc