Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

x-xss-protection

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x-xss-protection - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

CHANGELOG.md

54

package.json
{
"name": "x-xss-protection",
"author": "Adam Baldwin <baldwin@andyet.net> (http://andyet.net/team/baldwin)",
"author": "Adam Baldwin <adam@npmjs.com> (https://evilpacket.net)",
"contributors": [

@@ -8,3 +8,3 @@ "Evan Hahn <me@evanhahn.com> (https://evanhahn.com)"

"description": "Middleware to set the X-XSS-Protection header",
"version": "1.1.0",
"version": "1.2.0",
"license": "MIT",

@@ -19,2 +19,3 @@ "keywords": [

],
"homepage": "https://helmetjs.github.io/docs/xss-filter/",
"repository": {

@@ -24,21 +25,40 @@ "type": "git",

},
"bugs": "https://github.com/helmetjs/x-xss-protection/issues",
"bugs": {
"url": "https://github.com/helmetjs/x-xss-protection/issues",
"email": "me@evanhahn.com"
},
"engines": {
"node": ">=4.0.0"
},
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"files": [
"LICENSE",
"README.md",
"CHANGELOG.md",
"dist/index.js",
"dist/index.d.ts"
],
"scripts": {
"pretest": "standard --fix",
"test": "mocha"
"pretest": "npm run lint",
"prepublishOnly": "npm run build",
"lint": "eslint --fix '**/*.ts'",
"test": "jest --config test/jest-config.json",
"clean": "rm -rf dist",
"build": "npm run clean && tsc"
},
"devDependencies": {
"connect": "^3.6.5",
"mocha": "^4.1.0",
"standard": "^10.0.3",
"supertest": "^3.0.0"
},
"standard": {
"globals": [
"describe",
"before",
"beforeEach",
"it"
]
"@types/connect": "^3.4.32",
"@types/jest": "^24.0.14",
"@types/supertest": "^2.0.7",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.9.0",
"connect": "^3.7.0",
"eslint": "^5.16.0",
"eslint-config-helmet": "^0.2.0",
"jest": "^24.8.0",
"supertest": "^4.0.2",
"ts-jest": "^24.0.2",
"typescript": "^3.5.2"
}
}
X-XSS-Protection middleware
===========================
[![Build Status](https://travis-ci.org/helmetjs/x-xss-protection.svg?branch=master)](https://travis-ci.org/helmetjs/x-xss-protection)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[_Looking for a changelog?_](https://github.com/helmetjs/helmet/blob/master/HISTORY.md)
The `X-XSS-Protection` HTTP header is a basic protection against XSS. It was originally [by Microsoft](http://blogs.msdn.com/b/ieinternals/archive/2011/01/31/controlling-the-internet-explorer-xss-filter-with-the-x-xss-protection-http-header.aspx) but Chrome has since adopted it as well.

@@ -15,3 +12,3 @@

```javascript
var xssFilter = require('x-xss-protection')
const xssFilter = require('x-xss-protection')
app.use(xssFilter())

@@ -18,0 +15,0 @@ ```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc