DEFAULT switches between DISABLED if statlessSessions is true (resource server) and SESSION otherwise (client)
DISABLE disables CSRF protection. The default value for resource servers, but you should really not be doing that on a client!
SESSION stores CSRF token in servlet session or reactive web-session. The default value for clients, which is just fine if your not querying it with a JS
application (written with Angular, React, Vue, etc.)
COOKIE_HTTP_ONLY stores CSRF in a http-only XSRF-TOKEN cookie (not accessible from rich client apps)
COOKIE_ACCESSIBLE_FROM_JS stores CSRF in a XSRF-TOKEN cookie that is readable by JS apps
Author:
ch4mp
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Stores CSRF token in servlet session or reactive web-session. The default value for clients, which is just fine if your not querying it with a JS
application (written with Angular, React, Vue, etc.)
Stores CSRF in a XSRF-TOKEN cookie that is readable by JS apps. To be used when sessions are enabled and queries are issued with Angular, React, Vue,
etc.
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.