File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/ru/mystamps/web/support/spring/security Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,10 @@ protected void configure(HttpSecurity http) throws Exception {
131
131
// https://github.com/jquery/jquery/blob/d71f6a53927ad02d/jquery.js#L1441-L1447
132
132
// and https://w3c.github.io/webappsec-csp/#unsafe-hashed-attributes-usage)
133
133
+ "script-src 'self' 'unsafe-inline'; "
134
+ // 'self' is required for: uploaded images and its previews
134
135
// 'https://cdn.rawgit.com' is required for: languages.png (TODO: GH #246)
135
136
// 'https://raw.githubusercontent.com' is required for: languages.png
136
- + "img-src https://cdn.rawgit.com https://raw.githubusercontent.com; "
137
+ + "img-src 'self' https://cdn.rawgit.com https://raw.githubusercontent.com; "
137
138
// 'self' is required for: glyphicons-halflings-regular.woff2 from bootstrap
138
139
+ "font-src 'self'"
139
140
).reportOnly ();
You can’t perform that action at this time.
0 commit comments