(#2035) - Add referror to CORS headers