We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2c31e4 commit fc66266Copy full SHA for fc66266
lib/csp.js
@@ -41,7 +41,7 @@ CspStrategy.computeDirectives = function () {
41
mergeDirectives(directives, config.csp.directives)
42
mergeDirectivesIf(config.csp.addDefaults, directives, defaultDirectives)
43
mergeDirectivesIf(config.useCDN, directives, cdnDirectives)
44
- mergeDirectivesIf(config.dropbox.appKey, directives, dropboxDirectives)
+ mergeDirectivesIf(config.dropbox && config.dropbox.appKey, directives, dropboxDirectives)
45
mergeDirectivesIf(config.csp.addDisqus, directives, disqusDirectives)
46
mergeDirectivesIf(config.csp.addGoogleAnalytics, directives, googleAnalyticsDirectives)
47
if (!areAllInlineScriptsAllowed(directives)) {
0 commit comments