Functionality for allowing CORS (use tastymongo.enable_CORS = true and related settings)