mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
Properly added pwndpasswords API to CSP
This commit is contained in:
+1
-10
@@ -132,16 +132,7 @@ const main = async () => {
|
||||
// in production
|
||||
app.disable("x-powered-by");
|
||||
app.use(apiLimiter);
|
||||
app.use(
|
||||
helmet.contentSecurityPolicy({
|
||||
useDefaults: true,
|
||||
directives: {
|
||||
defaultSrc: ["'self'"],
|
||||
imgSrc: ["*", "data:"],
|
||||
connectSrc: ["'self'", "https://api.pwnedpasswords.com/range/"]
|
||||
}
|
||||
})
|
||||
);
|
||||
app.use(helmet());
|
||||
}
|
||||
|
||||
app.use((req, res, next) => {
|
||||
|
||||
Reference in New Issue
Block a user