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

next-security

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-security - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

3

build/main/defaultConfig.js

@@ -39,4 +39,5 @@ "use strict";

},
xPoweredBy: false,
},
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdENvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZWZhdWx0Q29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVhLFFBQUEsYUFBYSxHQUFtQjtJQUMzQyxPQUFPLEVBQUU7UUFDUCx5QkFBeUIsRUFBRSxhQUFhO1FBQ3hDLHVCQUF1QixFQUFFLGFBQWE7UUFDdEMseUJBQXlCLEVBQUUsY0FBYztRQUN6QyxxQkFBcUIsRUFBRTtZQUNyQixVQUFVLEVBQUUsQ0FBQyxRQUFRLENBQUM7WUFDdEIsVUFBVSxFQUFFLENBQUMsUUFBUSxFQUFFLFFBQVEsRUFBRSxPQUFPLENBQUM7WUFDekMsYUFBYSxFQUFFLENBQUMsUUFBUSxDQUFDO1lBQ3pCLGlCQUFpQixFQUFFLENBQUMsUUFBUSxDQUFDO1lBQzdCLFNBQVMsRUFBRSxDQUFDLFFBQVEsRUFBRSxPQUFPLENBQUM7WUFDOUIsWUFBWSxFQUFFLENBQUMsUUFBUSxDQUFDO1lBQ3hCLGlCQUFpQixFQUFFLENBQUMsUUFBUSxDQUFDO1lBQzdCLFdBQVcsRUFBRSxDQUFDLFFBQVEsRUFBRSxRQUFRLEVBQUUsaUJBQWlCLENBQUM7WUFDcEQsMkJBQTJCLEVBQUUsSUFBSTtTQUNsQztRQUNELGtCQUFrQixFQUFFLElBQUk7UUF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SxDQUFDO1lBQ3pCLGlCQUFpQixFQUFFLENBQUMsUUFBUSxDQUFDO1lBQzdCLFNBQVMsRUFBRSxDQUFDLFFBQVEsRUFBRSxPQUFPLENBQUM7WUFDOUIsWUFBWSxFQUFFLENBQUMsUUFBUSxDQUFDO1lBQ3hCLGlCQUFpQixFQUFFLENBQUMsUUFBUSxDQUFDO1lBQzdCLFdBQVcsRUFBRSxDQUFDLFFBQVEsRUFBRSxRQUFRLEVBQUUsaUJBQWlCLENBQUM7WUFDcEQsMkJBQTJCLEVBQUUsSUFBSTtTQUNsQztRQUNELGtCQUFrQixFQUFFLElBQUk7UUFDeEIsY0FBYyxFQUFFLGFBQWE7UUFDN0IsdUJBQXVCLEVBQUU7WUFDdkIsTUFBTSxFQUFFLFFBQVE7WUFDaEIsaUJBQWlCLEVBQUUsSUFBSTtTQUN4QjtRQUNELG1CQUFtQixFQUFFLFNBQVM7UUFDOUIsbUJBQW1CLEVBQUUsS0FBSztRQUMxQixnQkFBZ0IsRUFBRSxRQUFRO1FBQzFCLGFBQWEsRUFBRSxZQUFZO1FBQzNCLDZCQUE2QixFQUFFLE1BQU07UUFDckMsY0FBYyxFQUFFLEdBQUc7UUFDbkIsaUJBQWlCLEVBQUU7WUFDakIsTUFBTSxFQUFFLENBQUMsSUFBSSxDQUFDO1lBQ2QsaUJBQWlCLEVBQUUsQ0FBQyxJQUFJLENBQUM7WUFDekIsVUFBVSxFQUFFLENBQUMsSUFBSSxDQUFDO1lBQ2xCLFdBQVcsRUFBRSxDQUFDLElBQUksQ0FBQztZQUNuQixVQUFVLEVBQUUsQ0FBQyxJQUFJLENBQUM7U0FDbkI7UUFDRCxVQUFVLEVBQUUsS0FBSztLQUNsQjtDQUNGLENBQUMifQ==

@@ -7,3 +7,4 @@ import { SecurityConfig, SecurityHeader, SecurityHeaders } from './types';

}[]>;
poweredByHeader: string | false;
};
export declare const generateSecurityHeaders: (headers: SecurityHeaders) => SecurityHeader[];

@@ -13,6 +13,7 @@ "use strict";

source: '/(.*)',
headers: (0, exports.generateSecurityHeaders)(config.headers),
headers: (0, exports.generateSecurityHeaders)(config === null || config === void 0 ? void 0 : config.headers),
},
];
},
poweredByHeader: defaultConfig_1.defaultConfig.headers.xPoweredBy,
};

@@ -38,2 +39,2 @@ };

exports.generateSecurityHeaders = generateSecurityHeaders;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsbURBQWdEO0FBQ2hELG1DQUtpQjtBQUNqQixtQ0FBc0U7QUFFL0QsTUFBTSxZQUFZLEdBQUcsQ0FBQyxNQUFzQixFQUFFLEVBQUU7SUFDckQsT0FBTztRQUNMLEtBQUssQ0FBQyxPQUFPO1lBQ1gsT0FBTztnQkFDTDtvQkFDRSxNQUFNLEVBQUUsT0FBTztvQkFDZixPQUFPLEVBQUUsSUFBQSwrQkFBdUIsRUFBQyxNQUFNLENBQUMsT0FBTyxDQUFDO2lCQUNqRDthQUNGLENBQUM7UUFDSixDQUFDO0tBQ0YsQ0FBQztBQUNKLENBQUMsQ0FBQztBQVhXLFFBQUEsWUFBWSxnQkFXdkI7QUFFSyxNQUFNLHVCQUF1QixHQUFHLENBQUMsT0FBd0IsRUFBRSxFQUFFO0lBQ2xFLE1BQU0sWUFBWSxHQUFvQixDQUFDLE9BQU87UUFDNUMsQ0FBQyxDQUFDLDZCQUFhLENBQUMsT0FBTztRQUN2QixDQUFDLENBQUMsSUFBQSx3QkFBZ0Isb0JBQU0sT0FBTyxxQkFBUyw2QkFBYSxDQUFDLE9BQU8sRUFBRyxDQUFDO0lBRW5FLE1BQU0sWUFBWSxHQUFxQixFQUFFLENBQUM7SUFDMUMsS0FBSyxNQUFNLE1BQU0sSUFBSSxZQUFZLEVBQUU7UUFDakMsTUFBTSxhQUFhL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ixDQUFDLE9BQU87UUFDNUMsQ0FBQyxDQUFDLDZCQUFhLENBQUMsT0FBTztRQUN2QixDQUFDLENBQUMsSUFBQSx3QkFBZ0Isb0JBQU0sT0FBTyxxQkFBUyw2QkFBYSxDQUFDLE9BQU8sRUFBRyxDQUFDO0lBRW5FLE1BQU0sWUFBWSxHQUFxQixFQUFFLENBQUM7SUFDMUMsS0FBSyxNQUFNLE1BQU0sSUFBSSxZQUFZLEVBQUU7UUFDakMsTUFBTSxhQUFhLEdBQUcsWUFBWSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzNDLElBQUksYUFBYSxFQUFFO1lBQ2pCLFlBQVksQ0FBQyxJQUFJLENBQUM7Z0JBQ2hCLEdBQUcsRUFBRSw2QkFBcUIsQ0FBQyxNQUFNLENBQUM7Z0JBQ2xDLEtBQUssRUFBRSxJQUFBLGlDQUF5QixFQUM5QixNQUErQixFQUMvQixhQUFhLENBQ2Q7YUFDRixDQUFDLENBQUM7U0FDSjtLQUNGO0lBRUQsT0FBTyxZQUFZLENBQUM7QUFDdEIsQ0FBQyxDQUFDO0FBcEJXLFFBQUEsdUJBQXVCLDJCQW9CbEMifQ==

@@ -19,2 +19,3 @@ export type SecurityConfig = {

permissionsPolicy?: PermissionsPolicyValue | string | false;
xPoweredBy?: string | false;
};

@@ -21,0 +22,0 @@ export type StrictTransportSecurityValue = {

@@ -20,2 +20,2 @@ "use strict";

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBdUthLFFBQUEscUJBQXFCLEdBQXdCO0lBQ3hELHFCQUFxQixFQUFFLHlCQUF5QjtJQUNoRCx5QkFBeUIsRUFBRSw4QkFBOEI7SUFDekQsdUJBQXVCLEVBQUUsNEJBQTRCO0lBQ3JELHlC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DQUFDLFFBQVEsQ0FBQztZQUN4QixpQkFBaUIsRUFBRSxDQUFDLFFBQVEsQ0FBQztZQUM3QixXQUFXLEVBQUUsQ0FBQyxRQUFRLEVBQUUsUUFBUSxFQUFFLGlCQUFpQixDQUFDO1lBQ3BELDJCQUEyQixFQUFFLElBQUk7U0FDbEM7UUFDRCxrQkFBa0IsRUFBRSxJQUFJO1FBQ3hCLGNBQWMsRUFBRSxhQUFhO1FBQzdCLHVCQUF1QixFQUFFO1lBQ3ZCLE1BQU0sRUFBRSxRQUFRO1lBQ2hCLGlCQUFpQixFQUFFLElBQUk7U0FDeEI7UUFDRCxtQkFBbUIsRUFBRSxTQUFTO1FBQzlCLG1CQUFtQixFQUFFLEtBQUs7UUFDMUIsZ0JBQWdCLEVBQUUsUUFBUTtRQUMxQixhQUFhLEVBQUUsWUFBWTtRQUMzQiw2QkFBNkIsRUFBRSxNQUFNO1FBQ3JDLGNBQWMsRUFBRSxHQUFHO1FBQ25CLGlCQUFpQixFQUFFO1lBQ2pCLE1BQU0sRUFBRSxDQUFDLElBQUksQ0FBQztZQUNkLGlCQUFpQixFQUFFLENBQUMsSUFBSSxDQUFDO1lBQ3pCLFVBQVUsRUFBRSxDQUFDLElBQUksQ0FBQztZQUNsQixXQUFXLEVBQUUsQ0FBQyxJQUFJLENBQUM7WUFDbkIsVUFBVSxFQUFFLENBQUMsSUFBSSxDQUFDO1NBQ25CO1FBQ0QsVUFBVSxFQUFFLEtBQUs7S0FDbEI7Q0FDRixDQUFDIn0=

@@ -7,3 +7,4 @@ import { SecurityConfig, SecurityHeader, SecurityHeaders } from './types';

}[]>;
poweredByHeader: string | false;
};
export declare const generateSecurityHeaders: (headers: SecurityHeaders) => SecurityHeader[];

@@ -10,6 +10,7 @@ import { defaultConfig } from './defaultConfig';

source: '/(.*)',
headers: generateSecurityHeaders(config.headers),
headers: generateSecurityHeaders(config?.headers),
},
];
},
poweredByHeader: defaultConfig.headers.xPoweredBy,
};

@@ -33,2 +34,2 @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dBQUcsQ0FBQyxPQUF3QixFQUFFLEVBQUU7SUFDbEUsTUFBTSxZQUFZLEdBQW9CLENBQUMsT0FBTztRQUM1QyxDQUFDLENBQUMsYUFBYSxDQUFDLE9BQU87UUFDdkIsQ0FBQyxDQUFDLGdCQUFnQixDQUFDLEVBQUUsR0FBRyxPQUFPLEVBQUUsRUFBRSxFQUFFLEdBQUcsYUFBYSxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUM7SUFFbkUsTUFBTSxZQUFZLEdBQXFCLEVBQUUsQ0FBQztJQUMxQyxLQUFLLE1BQU0sTUFBTSxJQUFJLFlBQVksRUFBRTtRQUNqQyxNQUFNLGFBQWEsR0FBRyxZQUFZLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDM0MsSUFBSSxhQUFhLEVBQUU7WUFDakIsWUFBWSxDQUFDLElBQUksQ0FBQztnQkFDaEIsR0FBRyxFQUFFLHFCQUFxQixDQUFDLE1BQU0sQ0FBQztnQkFDbEMsS0FBSyxFQUFFLHlCQUF5QixDQUM5QixNQUErQixFQUMvQixhQUFhLENBQ2Q7YUFDRixDQUFDLENBQUM7U0FDSjtLQUNGO0lBRUQsT0FBTyxZQUFZLENBQUM7QUFDdEIsQ0FBQyxDQUFDIn0=

@@ -19,2 +19,3 @@ export type SecurityConfig = {

permissionsPolicy?: PermissionsPolicyValue | string | false;
xPoweredBy?: string | false;
};

@@ -21,0 +22,0 @@ export type StrictTransportSecurityValue = {

@@ -17,2 +17,2 @@ export const SECURITY_HEADER_NAMES = {

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUtBLE1BQU0sQ0FBQyxNQUFNLHFCQUFxQixHQUF3QjtJQUN4RCxxQkFBcUIsRUFBRSx5QkFBeUI7SUFDaEQseUJ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GNBQWMsRUFBRSxrQkFBa0I7SUFDbEMsaUJBQWlCLEVBQUUsb0JBQW9CO0NBQ3hDLENBQUMifQ==
{
"name": "next-security",
"version": "1.0.3",
"version": "1.1.0",
"description": "Security plugin for Next.js based on OWASP and Helmet",

@@ -5,0 +5,0 @@ "main": "build/main/index.js",

@@ -30,3 +30,3 @@ # next-security

Add the plugin to the `next.config.js` like following:
Add the plugin to the `next.config.js` like following :

@@ -37,3 +37,3 @@ ```js

const nextConfig = {
...nextSecurity(),
...nextSecurity(), // with this approach you will also hide the `X-Powered-By` header that is a good pattern
};

@@ -58,2 +58,3 @@

},
// poweredByHeader: false // you can add this manually
};

@@ -60,0 +61,0 @@

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