Skip to content

Commit

Permalink
Merge pull request #146 from allthingsclowd/More-CORS-Tweaks-to-allow…
Browse files Browse the repository at this point in the history
…-cache-control

More cors tweaks to allow cache control
  • Loading branch information
allthingsclowd authored Sep 26, 2018
2 parents 0a812e4 + 290a6a0 commit 6d82b13
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion 1

This file was deleted.

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func main() {
func enableCors(w *http.ResponseWriter) {
(*w).Header().Set("Access-Control-Allow-Origin", "*")
(*w).Header().Set("Access-Control-Allow-Methods", "GET, POST, OPTIONS, PUT, PATCH, DELETE")
(*w).Header().Set("Access-Control-Allow-Headers", "Cache-Control")
(*w).Header().Set("Access-Control-Allow-Headers", "Cache-Control, Content-Type")
(*w).Header().Set("PageCountIP", targetIP)
(*w).Header().Set("PageCountServer", thisServer)
(*w).Header().Set("PageCountPort", targetPort)
Expand Down

0 comments on commit 6d82b13

Please sign in to comment.