use string null instead of atom when origin header is not provided