Access-Control-Allow-Origin: *

This commit is contained in:
Pierre Carrier
2013-04-24 03:31:09 +02:00
parent 9bde217a0f
commit f5d85b101f

@ -49,6 +49,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
w.Header().Add("Access-Control-Allow-Origin", "*")
if _, err := io.WriteString(w, code); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return