diff options
Diffstat (limited to 'src/ninjacloud.go')
-rw-r--r-- | src/ninjacloud.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ninjacloud.go b/src/ninjacloud.go index f2d31d7..25a84a4 100644 --- a/src/ninjacloud.go +++ b/src/ninjacloud.go | |||
@@ -632,6 +632,11 @@ func getDataHandler(w http.ResponseWriter, r *http.Request) { | |||
632 | 632 | ||
633 | // Get the cloud status JSON | 633 | // Get the cloud status JSON |
634 | func getStatusHandler(w http.ResponseWriter, r *http.Request) { | 634 | func getStatusHandler(w http.ResponseWriter, r *http.Request) { |
635 | w.Header().Add("Cache-Control", "no-cache") | ||
636 | w.Header().Add("Access-Control-Allow-Headers", "Content-Type, sourceURI, overwrite-destination, check-existence-only, recursive, return-type, operation, delete-source, file-filters, if-modified-since, get-file-info") | ||
637 | w.Header().Add("Access-Control-Allow-Methods", "POST, GET, DELETE, PUT") | ||
638 | w.Header().Add("Access-Control-Allow-Origin", "*/*") | ||
639 | w.Header().Add("Access-Control-Max-Age", "86400") | ||
635 | cloudStatus := map[string]string{ | 640 | cloudStatus := map[string]string{ |
636 | "name": APP_NAME, | 641 | "name": APP_NAME, |
637 | "version": APP_VERSION, | 642 | "version": APP_VERSION, |