Skip to content

Commit

Permalink
Merge pull request #431 from DedunuKarunarathne/master
Browse files Browse the repository at this point in the history
Fix security vulnerabilities
  • Loading branch information
DedunuKarunarathne authored Oct 31, 2024
2 parents f39d4fe + 32013fa commit e67e6b0
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
httpResponse.addHeader("Referrer-Policy", "same-origin");
httpResponse.addHeader("X-XSS-Protection", "1; mode=block");
httpResponse.addHeader("Strict-Transport-Security", "max-age=31536000; includeSubDomains");
httpResponse.addHeader("Cache-Control", "no-cache, no-store, must-revalidate");
filterChain.doFilter(servletRequest, servletResponse);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ public static void setHeaders(Response.ResponseBuilder responseBuilder) {
.header("X-Content-Type-Options", "nosniff")
.header("Referrer-Policy", "same-origin")
.header("X-XSS-Protection", "1; mode=block")
.header("Strict-Transport-Security", "max-age=31536000; includeSubDomains; preload");
.header("Strict-Transport-Security", "max-age=31536000; includeSubDomains; preload")
.header("Cache-Control", "no-cache, no-store, must-revalidate");
}

}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"axios": "^0.21.4",
"axios": "^1.7.7",
"jwt-decode": "^3.1.2",
"monaco-editor": "^0.38.0",
"react": "^16.14.0",
Expand Down

0 comments on commit e67e6b0

Please sign in to comment.