Legend of the Christmas Spider

The Legend of the Christmas Spider is an Eastern European folktale which explains the origin of tinsel on Christmas trees. It is most prevalent in Western Ukraine, where small ornaments in the shape of a spider are traditionally a part of the Christmas decorations.
Story.
A poor but hardworking widow once lived in a small hut with her children. One summer day, a pine cone fell on the earthen floor of the hut and took root. The widow's children cared for the tree, excited at the prospect of having a Christmas tree by winter. The tree grew, but when Christmas Eve arrived, they could not afford to decorate it. The children sadly went to bed and fell asleep. Early the next morning, they woke up and saw the tree covered with cobwebs. When they opened the windows, the first rays of sunlight touched the webs and turned them into gold and silver. The widow and her children were overjoyed. From then on, they never lived in poverty again.
Variants.
Other versions replaces sunlight with a miracle from Father Christmas, Santa Claus, or the Child Jesus, and tells the story primarily from the perspective of the spiders who wished to see the Christmas tree.
Origins.
The origins of the folk tale are unknown, but it is believed to have come from either Germany or Ukraine. In Germany, Poland, and Ukraine, finding a spider or a spider's web on a Christmas tree is considered good luck. Ukrainians also create small Christmas tree ornaments in the shape of a spider (known as "pavuchky", literally "little spiders"), usually made of paper and wire. They also decorate Christmas trees with artificial spider webs. The tradition of using tinsel is also said to be because of this story.
According to Lubow Wolynetz, folk art curator at Ukrainian Museum, New York City, the tradition is Ukrainian and dates back to the late 1800s or early 1900.
It may be based on an older European superstition about spiders bringing luck (though not black spiders in Germany), or conversely that it is bad luck to destroy a spider's web before the spider is safely out of the way.