Both are correct. Like has been used to introduce a clause for 500 years by distinguished writers. There have been objections to this since the mid-19th century, though.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.