Move origin header in case there is an error