File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ var defaultDirectives = {
16
16
connectSrc : [ '*' ]
17
17
}
18
18
19
+ var dropboxDirectives = {
20
+ scriptSrc : [ 'https://www.dropbox.com' ]
21
+ }
22
+
19
23
var cdnDirectives = {
20
24
scriptSrc : [ 'https://cdnjs.cloudflare.com' , 'https://cdn.jsdelivr.net' , 'https://cdn.mathjax.org' ] ,
21
25
styleSrc : [ 'https://cdnjs.cloudflare.com' , 'https://cdn.jsdelivr.net' , 'https://fonts.googleapis.com' ] ,
@@ -37,6 +41,7 @@ CspStrategy.computeDirectives = function () {
37
41
mergeDirectives ( directives , config . csp . directives )
38
42
mergeDirectivesIf ( config . csp . addDefaults , directives , defaultDirectives )
39
43
mergeDirectivesIf ( config . useCDN , directives , cdnDirectives )
44
+ mergeDirectivesIf ( config . dropbox . appKey , directives , dropboxDirectives )
40
45
mergeDirectivesIf ( config . csp . addDisqus , directives , disqusDirectives )
41
46
mergeDirectivesIf ( config . csp . addGoogleAnalytics , directives , googleAnalyticsDirectives )
42
47
if ( ! areAllInlineScriptsAllowed ( directives ) ) {
You can’t perform that action at this time.
0 commit comments