We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b60c32 commit 98d3c60Copy full SHA for 98d3c60
src/serverHandler/json.go
@@ -78,6 +78,7 @@ func getJsonData(data *responseData) *jsonResponseData {
78
func (h *aliasHandler) json(w http.ResponseWriter, r *http.Request, data *responseData) {
79
header := w.Header()
80
header.Set("Vary", h.vary)
81
+ header.Set("X-Content-Type-Options", "nosniff")
82
header.Set("Content-Type", "application/json; charset=utf-8")
83
if lacksHeader(header, "Cache-Control") {
84
header.Set("Cache-Control", "public, max-age=0")
0 commit comments