]> git.scottworley.com Git - reliable-chat/blobdiff - server/server.go
Fetch with direct cross-origin XMLHttpRequests
[reliable-chat] / server / server.go
index f19cefc1dde45eae5ad7fa4efb3c949178f532ec..9ca5e619c1a9d18cd53981af2157458e7caa5cac 100644 (file)
@@ -161,6 +161,7 @@ func start_server(store Store) {
                        return
                }
                w.Header().Add("Content-Type", "application/json")
+               w.Header().Add("Access-Control-Allow-Origin", "*")
                w.Write(json_encoded)
        })