func (gm *GMServer) allowOriginMiddleware(inner http.Handler) http.Handler {
	mw := func(w http.ResponseWriter, r *http.Request) {
		w.Header().Set("Access-Control-Allow-Origin", "*")
		inner.ServeHTTP(w, r)
	}
	return middleware.MkMiddleware(mw)
}
// Middleware which sets Access-Control-Allow-Origin header
Middleware which sets Access-Control-Allow-Origin header
// Middleware which sets Access - Control - Allow - Origin header
func (gm *GMServer) allowOriginMiddleware(inner http.Handler) http.Handler {
	mw := func(w http.ResponseWriter, r *http.Request) {
		w.Header().Set("Access-Control-Allow-Origin", "*")
		inner.ServeHTTP(w, r)
	}
	return middleware.MkMiddleware(mw)
}
func ( gm * GMServer ) allowOriginMiddleware ( inner http . Handler ) http . Handler { mw := func ( w http . ResponseWriter , r * http . Request ) { w . Header ( ) . Set ( " " , " " ) inner . ServeHTTP ( w , r ) } return middleware . MkMiddleware ( mw ) }
Middleware which sets Access-Control-Allow-Origin header
Middleware which sets Access - Control - Allow - Origin header