CHICAGO — The secret compartments where cabin crew rest on board long-haul flights have been revealed in photos online. <br /> <br />Photographs of secret rest cabins for pilots and flight attendants on Boeing’s flagship 787 Dreamliner were published by Australian website News.com.au. <br /> <br />On a Boeing 787 Dreamliner, the pilot’s rest cabin is usually positioned behind the cockpit and above the first class compartment. <br /> <br />The stairway is disguised behind a security-coded door. The cabin usually has one business class seat and two bunk beds, separated by thick curtains to give the pilots a small amount of privacy. <br /> <br />The rest cabin for flight attendants is usually located at the rear of the plane, just above the economy passenger compartment. Depending on the design of each plane, a compartment can usually accommodate at least five flight attendants. <br /> <br />Even though some crew members complain that it feels like sleeping in a coffin, posters commenting on the story on Twitter wondered if similar rest cabins could be designed for passengers too.