Skip to content

Commit 3c096ba

Browse files
committed
http header X-Content-Type-Options: nosniff
1 parent 4ece076 commit 3c096ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ func initQueryHandler(dbPath string, queryString string, serverPort uint) (func(
9393
return func(w http.ResponseWriter, r *http.Request) {
9494
w.Header().Set("Server", "SQLiteQueryServer v"+version)
9595
w.Header().Set("Access-Control-Allow-Origin", "*")
96+
w.Header().Set("X-Content-Type-Options", "nosniff")
9697

9798
if r.URL.Path != "/query" {
9899
http.Error(w, helpMessage, http.StatusNotFound)

0 commit comments

Comments
 (0)