summaryrefslogtreecommitdiff
path: root/system/api/server.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-19 12:37:03 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-19 12:37:03 -0800
commitce7a06a89d1ff330e7ef9dcae4ef76ddc84c3dc4 (patch)
treec36d00ce882de82728dd7e001f86d060231098a7 /system/api/server.go
parent4aae7bc1ebe1f2e51322ff8a991c7fa6f3c48168 (diff)
adding CORS middleware to external API endpoints for browser compliance
Diffstat (limited to 'system/api/server.go')
-rw-r--r--system/api/server.go2
1 files changed, 1 insertions, 1 deletions
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)))
}