From faa6b9cacdc2187a99557ec246f33bfccc114fad Mon Sep 17 00:00:00 2001 From: Graham Land Date: Wed, 26 Sep 2018 19:28:27 +0100 Subject: [PATCH 1/2] added ContenT-Type Header --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7a71abf..287010d 100644 --- a/main.go +++ b/main.go @@ -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) From 290a6a05937c3dcdebdf37a1c83318aa08cb009a Mon Sep 17 00:00:00 2001 From: Graham Land Date: Wed, 26 Sep 2018 19:30:48 +0100 Subject: [PATCH 2/2] removed trash --- 1 | 1 - 1 file changed, 1 deletion(-) delete mode 100644 1 diff --git a/1 b/1 deleted file mode 100644 index 1a89b7e..0000000 --- a/1 +++ /dev/null @@ -1 +0,0 @@ -Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.