Skip to content

Commit

Permalink
http header X-Content-Type-Options: nosniff
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Apr 30, 2019
1 parent 4ece076 commit 3c096ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func initQueryHandler(dbPath string, queryString string, serverPort uint) (func(
return func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", "SQLiteQueryServer v"+version)
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("X-Content-Type-Options", "nosniff")

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

0 comments on commit 3c096ba

Please sign in to comment.