mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Merge pull request #1369 from hedgedoc/feature/remove_unsafe_eval
This commit is contained in:
commit
1d082ae827
2 changed files with 3 additions and 4 deletions
|
@ -5,8 +5,7 @@ const CspStrategy = {}
|
|||
|
||||
const defaultDirectives = {
|
||||
defaultSrc: ['\'self\''],
|
||||
scriptSrc: ['\'self\'', 'vimeo.com', 'https://gist.github.com', 'www.slideshare.net', '\'unsafe-eval\''],
|
||||
// ^ TODO: Remove unsafe-eval - webpack script-loader issues https://github.com/hackmdio/codimd/issues/594
|
||||
scriptSrc: ['\'self\'', 'vimeo.com', 'https://gist.github.com', 'www.slideshare.net'],
|
||||
imgSrc: ['*'],
|
||||
styleSrc: ['\'self\'', '\'unsafe-inline\'', 'https://github.githubassets.com'], // unsafe-inline is required for some libs, plus used in views
|
||||
fontSrc: ['\'self\'', 'data:', 'https://public.slidesharecdn.com'],
|
||||
|
|
|
@ -6,9 +6,9 @@ module.exports = [
|
|||
// merge common config
|
||||
merge(common, {
|
||||
mode: 'development',
|
||||
devtool: 'eval-cheap-module-source-map'
|
||||
devtool: 'cheap-module-source-map'
|
||||
}),
|
||||
merge(htmlexport, {
|
||||
mode: 'development',
|
||||
devtool: 'eval-cheap-module-source-map'
|
||||
devtool: 'cheap-module-source-map'
|
||||
})]
|
||||
|
|
Loading…
Reference in a new issue