:bug: Fix invalid schema types
Remove dummy casting on map->CorsPolicy fn
First complete version of the cors middleware fn