Added x_frame_options check

[Closes #531]