Skip to content

Commit eb209f6

Browse files
committed
Set maximum sizes for HTTP headers and HTTP POSTs.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Release-Notes#miscellaneous See also Spring Boot GH 5641 Addressed to #413 No functional changes.
1 parent ada2f45 commit eb209f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/resources/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ spring.http.multipart.max-request-size: 10Mb
2121
spring.http.multipart.max-file-size: 5Mb
2222
spring.http.multipart.file-size-threshold: 1Mb
2323

24+
# 1Kb for headers and post requests (upload files accounted separately)
25+
server.max-http-header-size: 1024
26+
server.max-http-post-size: 1024
27+
2428
server.session.cookie.http-only: true
2529

2630
server.use-forward-headers: true

0 commit comments

Comments
 (0)