add X-Content-Type-Options : nosniff header
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
package com.muwire.mucats
|
||||
import org.springframework.security.web.util.matcher.AntPathRequestMatcher
|
||||
|
||||
class NoSniffInterceptor {
|
||||
|
||||
NoSniffInterceptor() {
|
||||
match(uri: "/**")
|
||||
}
|
||||
|
||||
boolean before() {
|
||||
header("X-Content-Type-Options","nosniff")
|
||||
true
|
||||
}
|
||||
|
||||
boolean after() { true }
|
||||
}
|
Reference in New Issue
Block a user