]> git.scottworley.com Git - reliable-chat/blobdiff - server/server.go
Rename "history" to "hist"
[reliable-chat] / server / server.go
index c3bb59310b8ff28195f299b664cb0bd495c2c03c..963931f696d759459f6cb90512cd796100f88fcb 100644 (file)
@@ -184,6 +184,7 @@ func start_server(store Store) {
                        now(),
                        r.FormValue("id"),
                        r.FormValue("text")}
+               w.Header().Add("Access-Control-Allow-Origin", "*")
        })
 
        http.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) {