Return CORS headers, that allow everything.
This commit is contained in:
parent
ae05a283ac
commit
215c353449
@ -7,5 +7,7 @@ import (
|
||||
|
||||
func (pool *Pool) getRoot(w http.ResponseWriter, r *http.Request) {
|
||||
//fmt.Printf("got / request\n")
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
io.WriteString(w, string(pool.jsonst)+"\n")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user