Class CSRFController
java.lang.Object
edu.ucsb.cs156.example.controllers.CSRFController
The CSRF controller is used to get a CSRF token.
This is only enabled in the development profile,
and is used to test APIs with Postman or swagger.ui/
For more information on CSRF, do a web search on "Cross-Site Request Forgery".
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.csrf.CsrfToken
csrf
(org.springframework.security.web.csrf.CsrfToken token) This method returns a CSRF token.