From ce7a06a89d1ff330e7ef9dcae4ef76ddc84c3dc4 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Thu, 19 Jan 2017 12:37:03 -0800 Subject: adding CORS middleware to external API endpoints for browser compliance --- system/api/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/api/server.go') diff --git a/system/api/server.go b/system/api/server.go index 8e103c4..c5c1a23 100644 --- a/system/api/server.go +++ b/system/api/server.go @@ -8,5 +8,5 @@ func Run() { http.HandleFunc("/api/content", Record(CORS(Gzip(contentHandler)))) - http.HandleFunc("/api/content/external", Record(externalContentHandler)) + http.HandleFunc("/api/content/external", Record(CORS(externalContentHandler))) } -- cgit v1.2.3