Skip to content

Commit

Permalink
feat(QTDI-604): correct checkstyle error on csp var len
Browse files Browse the repository at this point in the history
  • Loading branch information
undx committed Dec 12, 2024
1 parent 68447a2 commit 497a1f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public void doFilter(final ServletRequest servletRequest, final ServletResponse
public static class EncodingFilter implements Filter {

@Override
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException {
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain)
throws IOException, ServletException {
response.setCharacterEncoding("UTF-8");
chain.doFilter(request, response);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public class StarterConfiguration {

@Inject
@ConfigProperty(name = "talend.component.starter.security.csp",
defaultValue = "default-src * 'unsafe-eval' 'unsafe-inline' data:; img-src * data: blob: 'unsafe-inline'; font-src * data: blob: 'unsafe-inline'; frame-ancestors 'none'")
defaultValue = "default-src * 'unsafe-eval' 'unsafe-inline' data:; img-src * data: blob: 'unsafe-inline';" +
" font-src * data: blob: 'unsafe-inline'; frame-ancestors 'none'")
private String csp;

@Inject
Expand Down

0 comments on commit 497a1f5

Please sign in to comment.