Revert "fix cors issue for cloudfront"

This reverts commit da3fd5b43dc70b97fdc898ff8690cd08a8f24bc1.