Sometimes it might go away. Soak your foot in warm water with maybe epsom salt. Don’t wear tight shoes.
I don’t think it’s dangerous but if it doesn’t go away on its own, you’d need to go see someone about it to get it done. It could get inflamed and infected otherwise