Add missing unsafe-inline CSP directive
Dropbox loads an external script that adds inline javascript. Therefore, this addition is needed when enabling dropbox support. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
@@ -33,7 +33,7 @@ var googleAnalyticsDirectives = {
|
||||
}
|
||||
|
||||
var dropboxDirectives = {
|
||||
scriptSrc: ['https://www.dropbox.com']
|
||||
scriptSrc: ['https://www.dropbox.com', '\'unsafe-inline\'']
|
||||
}
|
||||
|
||||
CspStrategy.computeDirectives = function () {
|
||||
|
||||
Reference in New Issue
Block a user