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:
parent
f821da6c09
commit
8932260360
@ -33,7 +33,7 @@ var googleAnalyticsDirectives = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var dropboxDirectives = {
|
var dropboxDirectives = {
|
||||||
scriptSrc: ['https://www.dropbox.com']
|
scriptSrc: ['https://www.dropbox.com', '\'unsafe-inline\'']
|
||||||
}
|
}
|
||||||
|
|
||||||
CspStrategy.computeDirectives = function () {
|
CspStrategy.computeDirectives = function () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user