Akagi201
5/10/2016 - 7:21 AM

cors.md

go-swagger enable cors

import "github.com/rs/cors"

func setupGlobalMiddleware(handler http.Handler) http.Handler {
    handleCORS := cors.Default().Handler

    return handleCORS(handler)
}