summaryrefslogtreecommitdiff
path: root/app/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/app.go')
-rw-r--r--app/app.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/app.go b/app/app.go
index 68bcc51..0ce959c 100644
--- a/app/app.go
+++ b/app/app.go
@@ -15,6 +15,7 @@ import (
rice "github.com/GeertJohan/go.rice"
"github.com/fsnotify/fsnotify"
+ "github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/renstrom/shortuuid"
log "github.com/sirupsen/logrus"
@@ -113,7 +114,7 @@ func (a *App) Run() error {
}
buildFeed(a)
go startWatcher(a)
- return http.Serve(a.Listener, a.Router)
+ return http.Serve(a.Listener, handlers.CORS()(a.Router))
}
func (a *App) render(name string, w http.ResponseWriter, ctx interface{}) {