diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-19 12:37:03 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-19 12:37:03 -0800 |
commit | ce7a06a89d1ff330e7ef9dcae4ef76ddc84c3dc4 (patch) | |
tree | c36d00ce882de82728dd7e001f86d060231098a7 | |
parent | 4aae7bc1ebe1f2e51322ff8a991c7fa6f3c48168 (diff) |
adding CORS middleware to external API endpoints for browser compliance
-rw-r--r-- | system/api/server.go | 2 |
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))) } |