adding cors headers to upvote and downvote