Fixing cors errors