rrda

REST API allowing to perform DNS queries over HTTP
Log | Files | Refs | README | LICENSE

commit c75e8b9a5ea3fae552f87ed09ac33a33c3b891a8
parent b706fc4c92809d20af1f9e5a81aab52ad02e9fc6
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Wed, 27 Aug 2014 19:45:21 +0200

Enable CORS

Diffstat:
Mrrda.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/rrda.go b/rrda.go @@ -101,6 +101,7 @@ func resolve(w http.ResponseWriter, r *http.Request, server string, domain strin m.MsgHdr.RecursionDesired = true w.Header().Set("Content-Type", "application/json") + w.Header().Set("Access-Control-Allow-Origin", "*") c := new(dns.Client)