simple middleware for easy cross-origin resource sharing with ring