Beginning of Strict CSP Compliance (#6841)
* Add CSP Support and enable it initially for Login page * Update README * Make sure that CSP is not enabled if CSP_POLICY isnt set * Add a new value for x-csp header that tells if instance has opted-in to CSP or not * Add more src to CSP * Fix typo in header name * Remove duplicate headers fn * Add https://eu.ui-avatars.com/api/ * Add CSP_POLICY to env.example
This commit is contained in:
1 parent
390967990a
commit
30c0e6d1d7
14 files changed
+243
-58
No files matched your search
@@ -19,7 +19,6 @@ declare global {
|
||||
resetEmbedStatus: () => void;
|
||||
getEmbedNamespace: () => string | null;
|
||||
getEmbedTheme: () => "dark" | "light" | null;
|
||||
isPageOptimizedForEmbed: (calLink: string) => boolean;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Vendored
+5
@@ -53,5 +53,10 @@ declare namespace NodeJS {
|
||||
readonly NEXT_PUBLIC_APP_NAME: string | "Cal";
|
||||
readonly NEXT_PUBLIC_SUPPORT_MAIL_ADDRESS: string | "help@cal.com";
|
||||
readonly NEXT_PUBLIC_COMPANY_NAME: string | "Cal.com, Inc.";
|
||||
/**
|
||||
* "strict" -> Strict CSP
|
||||
* "non-strict" -> Strict CSP except the usage of unsafe-inline for `style-src`
|
||||
*/
|
||||
readonly CSP_POLICY: "strict" | "non-strict";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user