1917 Code of Cannon Law : “women, however, shall have a covered head and be modestly dressed, especially when they approach the table of the Lord.”
Key phrase is especially when approaching the table of the Lord. One approaches the “table of the Lord” at Eucharist. As well, covered head didn’t necessitate headscarf, just a covering which could be as simple as a veil.
I lived it....