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