Skip to content

Commit

Permalink
Updates headers for GET /
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Jan 7, 2024
1 parent a52c018 commit 9992705
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@ func MainHandler(w http.ResponseWriter, r *http.Request) {

// Send response
w.Header().Set("Content-Type", "application/json")
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "GET")

w.Write(jsonWhois)
}

0 comments on commit 9992705

Please sign in to comment.