simple ring middleware for easy cross-origin resource sharing (cors)