Set content length and date in CORS response