added cors ring middleware