Correct X-Frame-Options value sameorigin→SAMEORIGIN
This commit is contained in:
parent
6ea49bb3b3
commit
8cae4d0f8f
|
@ -51,7 +51,7 @@ func New(packfile string) (*Handler, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
|
||||||
h.SetHeader("X-Frame-Options", "sameorigin")
|
h.SetHeader("X-Frame-Options", "SAMEORIGIN")
|
||||||
|
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
|
||||||
h.SetHeader("X-Content-Type-Options", "nosniff")
|
h.SetHeader("X-Content-Type-Options", "nosniff")
|
||||||
|
|
Loading…
Reference in New Issue