diff --git a/server/agents.html b/server/agents.html new file mode 100644 index 0000000..e75adba --- /dev/null +++ b/server/agents.html @@ -0,0 +1,63 @@ + + + + + + JSON Data Display + + + +

JSON Data Display

+
+ +
+ + + + \ No newline at end of file diff --git a/server/jsonDumper.go b/server/jsonDumper.go index 3ea8abf..3e3d698 100644 --- a/server/jsonDumper.go +++ b/server/jsonDumper.go @@ -13,6 +13,7 @@ func (server *Server) jsonDumper(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusInternalServerError) w.Write([]byte("This is my Website")) } + w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusOK) w.Write(json)