Added cors middleware to support multiple origins