How to make Spotify Web player work in Chromium?

If you have installed chromium-browser from universe apt repository, you can make Spotify Web Player work there in Chromium, if you also install Google Chrome. Apparently that brings some shared software that Spotify needs. I tested this in 18.04.


Simple solution is to install curl and apt-transport-https using:

sudo apt-get -y install curl apt-transport-https