CORS working on the server

Please enter the commit message for your changes. Lines starting