adds cors to server connection in server.js