Added Access-Control headers on exceptions.