The problem should happen with near-infrared, visible, and UV-light. Glass is transparent in the visible range, and depending on type, also in IR / UV, so glass won't work as a shield.
The easiest, reliable way to shield would be wrapping in aluminum foil (also helps against RF-interference).