Skip to content

Commit 8e38b7e

Browse files
committed
Add section on web security
Issue: SPR-6125
1 parent d301748 commit 8e38b7e

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/asciidoc/index.adoc

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31703,6 +31703,24 @@ or in a JSP:
3170331703
----
3170431704

3170531705

31706+
[[mvc-web-security]]
31707+
=== Web Security
31708+
31709+
The http://projects.spring.io/spring-security/[Spring Security] project provides features
31710+
to protect web applications from malicious exploits. Check out the reference documentation in the sections on
31711+
http://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#csrf["CSRF protection"],
31712+
http://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#headers["Security Response Headers"], and also
31713+
http://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#mvc["Spring MVC Integration"].
31714+
Note that using Spring Security to secure the application is not necessarily required for all features.
31715+
For example CSRF protection can be added simply by adding the `CsrfFilter` and
31716+
`CsrfRequestDataValueProcessor` to your configuration. See the
31717+
https://github.com/spring-projects/spring-mvc-showcase/commit/361adc124c05a8187b84f25e8a57550bb7d9f8e4[Spring MVC Showcase]
31718+
for an example.
31719+
31720+
Another option is to use a framework dedicated to Web Security.
31721+
http://hdiv.org/[HDIV] is one such framework and integrates with Spring MVC.
31722+
31723+
3170631724

3170731725

3170831726
[[mvc-coc]]
@@ -32882,8 +32900,6 @@ declaration.
3288232900

3288332901

3288432902

32885-
32886-
3288732903
[[view]]
3288832904
== View technologies
3288932905

0 commit comments

Comments
 (0)