Skip to content

Commit d6b014c

Browse files
committed
CSP: specify report-uri.
Addressed to #226
1 parent c632930 commit d6b014c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ protected void configure(HttpSecurity http) throws Exception {
147147
// 'https://raw.githubusercontent.com' is required for: languages.png
148148
+ "img-src 'self' https://cdn.rawgit.com https://raw.githubusercontent.com; "
149149
// 'self' is required for: glyphicons-halflings-regular.woff2 from bootstrap
150-
+ "font-src 'self'"
150+
+ "font-src 'self'; "
151+
+ "report-uri https://mystamps.report-uri.io/r/default/csp/reportOnly"
151152
).reportOnly();
152153
}
153154

0 commit comments

Comments
 (0)