mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -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 = {
|
const defaultDirectives = {
|
||||||
defaultSrc: ['\'self\''],
|
defaultSrc: ['\'self\''],
|
||||||
scriptSrc: ['\'self\'', 'vimeo.com', 'https://gist.github.com', 'www.slideshare.net', '\'unsafe-eval\''],
|
scriptSrc: ['\'self\'', 'vimeo.com', 'https://gist.github.com', 'www.slideshare.net'],
|
||||||
// ^ TODO: Remove unsafe-eval - webpack script-loader issues https://github.com/hackmdio/codimd/issues/594
|
|
||||||
imgSrc: ['*'],
|
imgSrc: ['*'],
|
||||||
styleSrc: ['\'self\'', '\'unsafe-inline\'', 'https://github.githubassets.com'], // unsafe-inline is required for some libs, plus used in views
|
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'],
|
fontSrc: ['\'self\'', 'data:', 'https://public.slidesharecdn.com'],
|
||||||
|
|
|
@ -6,9 +6,9 @@ module.exports = [
|
||||||
// merge common config
|
// merge common config
|
||||||
merge(common, {
|
merge(common, {
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
devtool: 'eval-cheap-module-source-map'
|
devtool: 'cheap-module-source-map'
|
||||||
}),
|
}),
|
||||||
merge(htmlexport, {
|
merge(htmlexport, {
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
devtool: 'eval-cheap-module-source-map'
|
devtool: 'cheap-module-source-map'
|
||||||
})]
|
})]
|
||||||
|
|
Loading…
Reference in a new issue