Cherry-pick 'Removed test validations on cors response headers' into release/0.19 See merge request !350