Class XContentTypeOptionsHeaderWriter
- java.lang.Object
-
- org.springframework.security.web.header.writers.StaticHeadersWriter
-
- org.springframework.security.web.header.writers.XContentTypeOptionsHeaderWriter
-
- All Implemented Interfaces:
HeaderWriter
public final class XContentTypeOptionsHeaderWriter extends StaticHeadersWriter
AStaticHeadersWriter
that inserts headers to prevent content sniffing. Specifically the following headers are set:- X-Content-Type-Options: nosniff
- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor Description XContentTypeOptionsHeaderWriter()
Creates a new instance
-
Method Summary
-
Methods inherited from class org.springframework.security.web.header.writers.StaticHeadersWriter
toString, writeHeaders
-
-